config/doom: defer package loading via :defer and :mode
This commit is contained in:
parent
097e2142d2
commit
aaae7035db
|
@ -319,8 +319,8 @@ Version 2019-11-04 2021-02-16"
|
||||||
(define-key dired-mode-map (kbd "<tab>") 'other-window)
|
(define-key dired-mode-map (kbd "<tab>") 'other-window)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
(use-package! tramp
|
(use-package! tramp
|
||||||
|
:defer t
|
||||||
:config
|
:config
|
||||||
(add-to-list 'tramp-methods
|
(add-to-list 'tramp-methods
|
||||||
'("yadm"
|
'("yadm"
|
||||||
|
@ -369,11 +369,13 @@ Version 2019-11-04 2021-02-16"
|
||||||
; (evil-better-visual-line-on))
|
; (evil-better-visual-line-on))
|
||||||
|
|
||||||
(use-package! direnv ; nix-shell stuffs
|
(use-package! direnv ; nix-shell stuffs
|
||||||
|
:defer t
|
||||||
:config
|
:config
|
||||||
(setq direnv-always-show-summary nil)
|
(setq direnv-always-show-summary nil)
|
||||||
(direnv-mode)
|
(direnv-mode)
|
||||||
)
|
)
|
||||||
(use-package! plantuml-mode ; Diagrams
|
(use-package! plantuml-mode ; Diagrams
|
||||||
|
:defer t
|
||||||
:config
|
:config
|
||||||
(setq plantuml-executable-path "nostderr"
|
(setq plantuml-executable-path "nostderr"
|
||||||
plantuml-executable-args '("plantuml" "-headless")
|
plantuml-executable-args '("plantuml" "-headless")
|
||||||
|
@ -387,19 +389,16 @@ Version 2019-11-04 2021-02-16"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
(use-package! adoc-mode ; Asciidoc, a md alternative
|
(use-package! adoc-mode ; Asciidoc, a md alternative
|
||||||
:config
|
:mode "\\.adoc\\'"
|
||||||
(add-to-list 'auto-mode-alist (cons "\\.adoc\\'" 'adoc-mode))
|
)
|
||||||
)
|
|
||||||
(use-package! nov
|
(use-package! nov
|
||||||
:config
|
:mode ("\\.epub\\'" . nov-mode)
|
||||||
(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode))
|
)
|
||||||
)
|
|
||||||
(use-package! lilypond-mode
|
(use-package! lilypond-mode
|
||||||
|
:mode ("\\.ly\\'" . LilyPond-mode)
|
||||||
:config
|
:config
|
||||||
(setq LilyPond-pdf-command "xdg-open")
|
(setq LilyPond-pdf-command "xdg-open")
|
||||||
(add-hook 'LilyPond-mode-hook 'turn-on-font-lock)
|
(add-hook 'LilyPond-mode-hook 'turn-on-font-lock)
|
||||||
(setq auto-mode-alist
|
|
||||||
(cons '("\\.ly$" . LilyPond-mode) auto-mode-alist))
|
|
||||||
(add-hook 'pdf-view-mode-hook 'auto-revert-mode)
|
(add-hook 'pdf-view-mode-hook 'auto-revert-mode)
|
||||||
(setq auto-revert-interval 2)
|
(setq auto-revert-interval 2)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue