diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/km-func.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/init/km-func.el b/init/km-func.el index bf98552..700bb42 100644 --- a/init/km-func.el +++ b/init/km-func.el @@ -163,3 +163,13 @@ KILLARG." (other-window 1)) (global-set-key (kbd "C-c s") 'km/swap-windows) + +;; http://whattheemacsd.com/setup-magit.el-05.html +(defun km/magit-just-amend () + (interactive) + (save-window-excursion + (magit-with-refresh + (shell-command "git --no-pager commit --amend --reuse-message=HEAD")))) + +(eval-after-load "magit" + '(define-key magit-status-mode-map (kbd "C-c C-a") 'km/magit-just-amend)) |