all repos — nixfiles @ 40da57107afa2ee64e0d6d9431a70134b1a3af64

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

Emacs: make magit-project-status available early
Alan Pearce alan@alanpearce.eu
Thu, 25 Apr 2024 17:16:47 +0200
commit

40da57107afa2ee64e0d6d9431a70134b1a3af64

parent

e38fee1693ed284c283d92a4d7db00ad3280e86f

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -982,6 +982,10 @@ :commands (magit-status magit-dispatch)   :init (progn
           (customize-set-value 'magit-auto-revert-mode nil))
   :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)))
   :config (progn
             (setq magit-section-visibility-indicator nil
                   magit-diff-refine-hunk 'all