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