summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d
diff options
context:
space:
mode:
authorAlan Pearce2014-06-12 21:55:03 +0100
committerAlan Pearce2014-06-12 21:55:03 +0100
commit89e7a9363975172443cfdcd87cc525076d11d64c (patch)
treeed244b5631dfe7a928863f2e6606308ad5a0b613 /tag-emacs/emacs.d
parentc5115c431e9bcd04cc2753e109a6fae7b97d439c (diff)
downloaddotfiles-89e7a9363975172443cfdcd87cc525076d11d64c.tar.lz
dotfiles-89e7a9363975172443cfdcd87cc525076d11d64c.tar.zst
dotfiles-89e7a9363975172443cfdcd87cc525076d11d64c.zip
Emacs: bind magit-status keys to projectile-vc
More general, and won't have to find the .git folder every time as
projectile will already know the project root.
Diffstat (limited to 'tag-emacs/emacs.d')
-rw-r--r--tag-emacs/emacs.d/init.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 82b7187..f7b8d47 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -651,7 +651,9 @@
 
 (req-package projectile
   :bind (("C-c C-f" . projectile-find-file)
-         ("s-x s-f" . projectile-find-file))
+         ("s-x s-f" . projectile-find-file)
+         ("C-x g" . projectile-vc)
+         ("s-G"   . projectile-vc))
   :init (projectile-global-mode)
   :diminish projectile-mode
   :config (progn
@@ -670,8 +672,6 @@
 (req-package magit
   :diminish magit-auto-revert-mode
   :commands (magit-status)
-  :bind (("C-x g" . magit-status)
-         ("s-G" . magit-status))
   :init (add-hook 'magit-mode-hook #'magit-load-config-extensions))
 
 ;;;; Spelling