emacs: fix magit-project integration erroring when called too early
Alan Pearce alan@alanpearce.eu
Tue, 21 May 2024 09:02:21 +0200
1 files changed, 2 insertions(+), 2 deletions(-)
jump to
M user/emacs/init.el → user/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