summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-04-25 17:16:47 +0200
committerAlan Pearce2024-04-25 17:16:47 +0200
commit40da57107afa2ee64e0d6d9431a70134b1a3af64 (patch)
treebcf5fba6d56b685ba18299328d323aeb338ad395
parente38fee1693ed284c283d92a4d7db00ad3280e86f (diff)
downloadnixfiles-40da57107afa2ee64e0d6d9431a70134b1a3af64.tar.lz
nixfiles-40da57107afa2ee64e0d6d9431a70134b1a3af64.tar.zst
nixfiles-40da57107afa2ee64e0d6d9431a70134b1a3af64.zip
Emacs: make magit-project-status available early
-rw-r--r--user/emacs/init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 268a71d3..c8c07aa7 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -982,6 +982,10 @@ _C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
   :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