diff options
author | Alan Pearce | 2023-06-24 07:30:29 +0200 |
---|---|---|
committer | Alan Pearce | 2023-06-24 07:30:29 +0200 |
commit | 5df8596e63a9946ea84d1d34371c6f31386527be (patch) | |
tree | 440c8a5ba7d15cb167854a7f152bc8f20428db72 /user/emacs | |
parent | 18a880c5aacf074dedcddfbd0d8b6ed75d6e7dc8 (diff) | |
download | nixfiles-5df8596e63a9946ea84d1d34371c6f31386527be.tar.lz nixfiles-5df8596e63a9946ea84d1d34371c6f31386527be.tar.zst nixfiles-5df8596e63a9946ea84d1d34371c6f31386527be.zip |
Emacs: optimise startup
Diffstat (limited to 'user/emacs')
-rw-r--r-- | user/emacs/init.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index 38a28d8c..e34df4ca 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -220,6 +220,7 @@ With two prefix arguments, write out the day and month name." (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 @@ _p_rev _u_pper _=_: upper/lower _r_esolve :config (global-anzu-mode +1)) (use-package evil-collection - :after (evil) :demand t :commands (evil-collection-init) :config (progn @@ -454,7 +454,6 @@ _p_rev _u_pper _=_: upper/lower _r_esolve :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 @@ _p_rev _u_pper _=_: upper/lower _r_esolve 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 @@ _p_rev _u_pper _=_: upper/lower _r_esolve (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 @@ _p_rev _u_pper _=_: upper/lower _r_esolve (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 @@ _p_rev _u_pper _=_: upper/lower _r_esolve python-mode-hook rustic-mode-hook))) (use-package tree-sitter-langs + :defer 30 :after tree-sitter) (use-package tree-sitter-indent |