all repos — nixfiles @ da560ebda355d444d963f73b1086989d80d3dd10

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

emacs: fix magit-project integration erroring when called too early
Alan Pearce alan@alanpearce.eu
Tue, 21 May 2024 09:02:21 +0200
commit

da560ebda355d444d963f73b1086989d80d3dd10

parent

65ad9cd252346a0ab3af05d299ea67bda8886139

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -967,8 +967,8 @@ :commands (magit-status magit-dispatch)   :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