From da560ebda355d444d963f73b1086989d80d3dd10 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 21 May 2024 09:02:21 +0200 Subject: emacs: fix magit-project integration erroring when called too early --- user/emacs/init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'user') 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 -- cgit 1.4.1