all repos — nixfiles @ 5df8596e63a9946ea84d1d34371c6f31386527be

System and user configuration, managed by nix and home-manager

Emacs: optimise startup
Alan Pearce alan@alanpearce.eu
Sat, 24 Jun 2023 07:30:29 +0200
commit

5df8596e63a9946ea84d1d34371c6f31386527be

parent

18a880c5aacf074dedcddfbd0d8b6ed75d6e7dc8

1 files changed, 7 insertions(+), 7 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -220,6 +220,7 @@ (use-package vertico
   :ghook ('after-init-hook #'vertico-mode))
 (use-package prescient
+  :defer 1
   :config (progn
             (setq prescient-history-length 10000)
             (prescient-persist-mode +1)))
@@ -368,7 +369,6 @@ :after evil   :config (global-anzu-mode +1))
 
 (use-package evil-collection
-  :after (evil)
   :demand t
   :commands (evil-collection-init)
   :config (progn
@@ -454,7 +454,6 @@ :ghook ('org-mode-hook #'evil-org-mode)   :gfhook #'evil-org-set-key-theme)
 
 (use-package evil-textobj-tree-sitter
-  :after evil
   :defer 5
   :config (progn
             (defun etts/start-of-next-function ()
@@ -538,7 +537,8 @@ (setq eldoc-idle-delay 0.5                   eldoc-echo-area-use-multiline-p nil)
             (global-eldoc-mode +1)))
 
-(use-package eldoc-box)
+(use-package eldoc-box
+  :defer t)
 
 (use-package ehelp
   :defer 15
@@ -919,11 +919,9 @@ :config (progn             (envrc-global-mode)))
 
 (use-package magit
-  :defer 5
   :commands (magit-status magit-dispatch)
   :init (progn
-          (customize-set-value 'magit-auto-revert-mode nil)
-          (require 'magit-extras))
+          (customize-set-value 'magit-auto-revert-mode nil))
   :general ([remap project-vc-dir] #'magit-project-status)
   :config (progn
             (setq magit-section-visibility-indicator nil
@@ -932,7 +930,8 @@ magit-display-buffer-function #'magit-display-buffer-fullcolumn-most-v1)             (remove-hook 'magit-status-sections-hook 'magit-insert-tags-header)
             (remove-hook 'magit-section-highlight-hook 'magit-section-highlight)
             (remove-hook 'magit-section-highlight-hook 'magit-section-highlight-selection)
-            (remove-hook 'magit-section-highlight-hook 'magit-diff-highlight)))
+            (remove-hook 'magit-section-highlight-hook 'magit-diff-highlight)
+            (require 'magit-extras)))
 
 (use-package magit-filenotify
   :after magit
@@ -1014,6 +1013,7 @@ typescript-mode-hook             python-mode-hook
             rustic-mode-hook)))
 (use-package tree-sitter-langs
+  :defer 30
   :after tree-sitter)
 
 (use-package tree-sitter-indent