all repos — nixfiles @ f4dd66b5b900f4a6bf77ee324cf6416e7345926b

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

emacs: load some packages on idle
Alan Pearce alan@alanpearce.eu
Sat, 22 Apr 2023 23:11:52 +0200
commit

f4dd66b5b900f4a6bf77ee324cf6416e7345926b

parent

ddffed56ae35b96e0dca94855ba3a563ace4feee

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -1030,6 +1030,7 @@ :config (progn             (setq treemacs-no-png-images t)))
 
 (use-package tree-sitter
+  :defer 30
   :init (defvar tree-sitter-langs--testing t) ; do not install grammars (nix does that)
   :ghook ('(sh-mode-hook
             c-mode-common-hook
@@ -1054,6 +1055,7 @@ (unless (fboundp 'project-name)   (defun project-name (project)
     (file-name-base (cdr project))))
 (use-package eglot
+  :defer 30
   :general (:states 'normal :keymaps 'eglot-mode-map
                     "gd" #'xref-find-definitions
                     "gr" #'xref-find-references
@@ -1097,6 +1099,7 @@ ;;;; Reformat on save
 
 (use-package format-all
+  :defer 10
   :ghook ('(css-mode-hook
             clojure-mode-hook
             dockerfile-mode-hook
@@ -1118,6 +1121,7 @@ :config (progn             (setq format-all-show-errors 'never)))
 
 (use-package apheleia
+  :defer 10
   :config (progn
             (setf (alist-get 'shfmt apheleia-formatters)
                   '("shfmt"))