summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2013-10-31 01:20:37 -0400
committerKyle Meyer <kyle@kyleam.com>2013-10-31 01:20:37 -0400
commitadff240ffec269cbe8a48729fbed4b30960b7015 (patch)
treebfc8b3efbb3b086b504a155d2858ba22eea9caf8 /init
parent045906bffbdaf2fa337b6a8e67a4f944f22e8edc (diff)
downloademacs.d-adff240ffec269cbe8a48729fbed4b30960b7015.tar.gz
Function for magit auto commit
For a few repos where commits often are not accompanied by a meaningful message
Diffstat (limited to 'init')
-rw-r--r--init/km-func.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/init/km-func.el b/init/km-func.el
index 700bb42..4043cb9 100644
--- a/init/km-func.el
+++ b/init/km-func.el
@@ -173,3 +173,12 @@ KILLARG."
(eval-after-load "magit"
'(define-key magit-status-mode-map (kbd "C-c C-a") 'km/magit-just-amend))
+
+(defun km/magit-auto-commit ()
+ (interactive)
+ (save-window-excursion
+ (magit-with-refresh
+ (shell-command "git --no-pager commit --all --message=auto"))))
+
+(eval-after-load "magit"
+ '(define-key magit-status-mode-map (kbd "C-c C-u") 'km/magit-auto-commit))