summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)