summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2023-04-22 23:11:52 +0200
committerAlan Pearce2023-04-22 23:11:52 +0200
commitf4dd66b5b900f4a6bf77ee324cf6416e7345926b (patch)
treedb93d1a09cd0fbf96eb6884742676254b2b423e0 /user/emacs
parentddffed56ae35b96e0dca94855ba3a563ace4feee (diff)
downloadnixfiles-f4dd66b5b900f4a6bf77ee324cf6416e7345926b.tar.lz
nixfiles-f4dd66b5b900f4a6bf77ee324cf6416e7345926b.tar.zst
nixfiles-f4dd66b5b900f4a6bf77ee324cf6416e7345926b.zip
emacs: load some packages on idle
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 514ff6bb..90c2fba3 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -1030,6 +1030,7 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
             (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 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   (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 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
 ;;;; Reformat on save
 
 (use-package format-all
+  :defer 10
   :ghook ('(css-mode-hook
             clojure-mode-hook
             dockerfile-mode-hook
@@ -1118,6 +1121,7 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
             (setq format-all-show-errors 'never)))
 
 (use-package apheleia
+  :defer 10
   :config (progn
             (setf (alist-get 'shfmt apheleia-formatters)
                   '("shfmt"))