summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-07-22 18:41:03 +0200
committerGuido Günther <agx@sigxcpu.org>2017-07-22 18:41:03 +0200
commitea3ca31cb2ab42756fcdf698ed55ebfc36e25265 (patch)
treed1105d84152e24672122c5683378a536df1fdf1a
parentf73af44dc0db7e6667ec743d751b14877454c538 (diff)
Save buffer before committing
-rw-r--r--keybindings.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/keybindings.el b/keybindings.el
index ce5d89e..120088f 100644
--- a/keybindings.el
+++ b/keybindings.el
@@ -1,5 +1,6 @@
(defun xcpu-commit-current-file ()
(interactive)
+ (save-buffer)
(magit-stage-file (magit-file-relative-name))
(magit-commit)
)