summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-01-18 19:35:16 -0500
committerKyle Meyer <kyle@kyleam.com>2014-01-18 19:35:16 -0500
commitbd4fb684079855cc3fa3a56b36980dedbc5a9fda (patch)
treed4c76d0a293d8044b5453a9e20247916766c7164 /init
parenta3792a4d84e75a56228e34385fb05eca12bbe01e (diff)
downloademacs.d-bd4fb684079855cc3fa3a56b36980dedbc5a9fda.tar.gz
Bind auto commit to magit committing menu
Diffstat (limited to 'init')
-rw-r--r--init/km-git.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/init/km-git.el b/init/km-git.el
index 5285f47..e083600 100644
--- a/init/km-git.el
+++ b/init/km-git.el
@@ -10,7 +10,8 @@ Useful for non-source code repos (e.g., Org mode note files)."
(interactive)
(magit-run-git "commit" "--all" "--message=auto"))
-(define-key magit-status-mode-map (kbd "C-c C-u") 'km/magit-auto-commit)
+(magit-key-mode-insert-action 'committing
+ "u" "Auto commit" 'km/magit-auto-commit)
;; http://whattheemacsd.com/setup-magit.el-01.html
(defadvice magit-status (around magit-fullscreen activate)