Emacs: optimise startup
Alan Pearce alan@alanpearce.eu
Sat, 24 Jun 2023 07:30:29 +0200
1 files changed, 7 insertions(+), 7 deletions(-)
jump to
M user/emacs/init.el → user/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