From e2aa130d540ea6133bdd3ee5ad1defcb719fd3c7 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Mon, 8 Feb 2021 09:31:08 -0500 Subject: [PATCH] Defer loading of hydra, org addons --- README.org | 7 +++++-- modules/editor.el | 6 ++++-- modules/writing.el | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index 99bf91b..5d82312 100644 --- a/README.org +++ b/README.org @@ -408,7 +408,8 @@ Implement the *leader* key using [[https://github.com/noctuid/general.el][genera Use [[https://github.com/abo-abo/hydra][hydra]] for transient keybindings sharing a common prefix. #+begin_src emacs-lisp -(use-package hydra) +(use-package hydra + :defer t) #+end_src *** Help @@ -504,7 +505,8 @@ Work directly with github issues / pull requests using [[https://github.com/magi + Requires a valid ~$GITHUB_TOKEN~ #+begin_src emacs-lisp -(use-package forge) +(use-package forge + :after magit) #+end_src Open the *status* page for the current repository with =SPC g=. @@ -792,6 +794,7 @@ I am using [[https://orgmode.org][Org-mode]] extensively for writing projects fo #+begin_src emacs-lisp (use-package org-superstar + :after org :hook (org-mode . org-superstar-mode)) #+end_src diff --git a/modules/editor.el b/modules/editor.el index 06dbf2f..3388f62 100644 --- a/modules/editor.el +++ b/modules/editor.el @@ -31,7 +31,8 @@ :prefix dotfiles/leader-key :global-prefix dotfiles/leader-key-global)) -(use-package hydra) +(use-package hydra + :defer t) (dotfiles/leader "h" '(:ignore t :which-key "Help") @@ -65,7 +66,8 @@ :custom (magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1)) -(use-package forge) +(use-package forge + :after magit) (dotfiles/leader "g" '(magit-status :which-key "Magit")) diff --git a/modules/writing.el b/modules/writing.el index ec9d6ff..80f642f 100644 --- a/modules/writing.el +++ b/modules/writing.el @@ -1,4 +1,5 @@ (use-package org-superstar + :after org :hook (org-mode . org-superstar-mode)) (use-package ox-hugo