fix: remove/apply defer only where it makes sense

:defer is to defer loading because some other action (hook/config/...)
will load it when appropriate.
This commit is contained in:
Laurens Miers 2025-05-27 12:01:17 +02:00
parent e6e5b5e461
commit 3591e5704e

View file

@ -77,7 +77,6 @@ The audible bell is annoying AF.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package whitespace (use-package whitespace
:ensure nil :ensure nil
:defer t
:hook (before-save-hook . whitespace-cleanup) :hook (before-save-hook . whitespace-cleanup)
;; if we wanna remove this hook at any time, eval: ;; if we wanna remove this hook at any time, eval:
;; (remove-hook 'before-save-hook #'whitespace-cleanup) ;; (remove-hook 'before-save-hook #'whitespace-cleanup)
@ -637,7 +636,6 @@ https://github.com/abo-abo/hydra
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package hydra (use-package hydra
:defer t
:config :config
;; Zoom hydra ;; Zoom hydra
(defhydra hydra-zoom (global-map "<f1>") (defhydra hydra-zoom (global-map "<f1>")
@ -726,7 +724,9 @@ https://github.com/victorhge/iedit
** Markdown-mode ** Markdown-mode
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package markdown-mode) (use-package markdown-mode
:defer t
)
#+END_SRC #+END_SRC
@ -790,6 +790,7 @@ Move to the end if the compilation finishes.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package rust-mode (use-package rust-mode
:defer t
:init :init
(setq rust-mode-treesitter-derive t)) (setq rust-mode-treesitter-derive t))
#+END_SRC #+END_SRC
@ -797,13 +798,17 @@ Move to the end if the compilation finishes.
** Zig ** Zig
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package zig-mode) (use-package zig-mode
:defer t
)
#+END_SRC #+END_SRC
** Python ** Python
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package python-mode) (use-package python-mode
:defer t
)
#+END_SRC #+END_SRC
* Multiple cursors * Multiple cursors
@ -896,6 +901,8 @@ Preserve indentation in SRC blocks
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package org-bullets (use-package org-bullets
:defer t
:after org
:config :config
(add-hook 'org-mode-hook (lambda () (org-bullets-mode)))) (add-hook 'org-mode-hook (lambda () (org-bullets-mode))))
#+END_SRC #+END_SRC
@ -904,6 +911,8 @@ Preserve indentation in SRC blocks
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package org-roam (use-package org-roam
:defer t
:after org
:custom :custom
(org-roam-directory "~/projects/notes") (org-roam-directory "~/projects/notes")
(org-roam-completion-everywhere t) (org-roam-completion-everywhere t)
@ -957,6 +966,8 @@ Preserve indentation in SRC blocks
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package org-download (use-package org-download
:defer t
:after org
:config :config
(add-hook 'dired-mode-hook 'org-download-enable) (add-hook 'dired-mode-hook 'org-download-enable)
) )