summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-05-21 09:02:21 +0200
committerAlan Pearce2024-05-21 09:02:21 +0200
commitda560ebda355d444d963f73b1086989d80d3dd10 (patch)
treee3f877a87c8b9efb9bc4635f7b80d39daae6e721
parent65ad9cd252346a0ab3af05d299ea67bda8886139 (diff)
downloadnixfiles-da560ebda355d444d963f73b1086989d80d3dd10.tar.lz
nixfiles-da560ebda355d444d963f73b1086989d80d3dd10.tar.zst
nixfiles-da560ebda355d444d963f73b1086989d80d3dd10.zip
emacs: fix magit-project integration erroring when called too early
-rw-r--r--user/emacs/init.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 03f42eda..da87deb0 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -967,8 +967,8 @@ _C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
   :general ([remap project-vc-dir] #'magit-project-status)
   (:keymaps 'project-prefix-map "m" #'magit-project-status)
   :init (progn
-          (with-eval-after-load 'project
-            (add-to-list 'project-switch-commands '(magit-project-status "Magit") t)))
+          (require 'project)
+          (add-to-list 'project-switch-commands '(magit-project-status "Magit") t))
   :config (progn
             (setq magit-section-visibility-indicator nil
                   magit-diff-refine-hunk t