From 3591e5704e7f4b4645d0f4d5369325dd80ac7368 Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Tue, 27 May 2025 12:01:17 +0200 Subject: [PATCH] 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. --- config.org | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/config.org b/config.org index ea4587d..cecb401 100644 --- a/config.org +++ b/config.org @@ -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 "") @@ -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) )