From bd4fb684079855cc3fa3a56b36980dedbc5a9fda Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sat, 18 Jan 2014 19:35:16 -0500 Subject: Bind auto commit to magit committing menu --- init/km-git.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'init') 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) -- cgit v1.2.3