diff options
author | Martin Polden <martin.polden@gmail.com> | 2015-07-05 23:11:27 +0200 |
---|---|---|
committer | Martin Polden <martin.polden@gmail.com> | 2015-07-05 23:11:27 +0200 |
commit | 06aaa28c3607d266543feb958507fb385f4e75f1 (patch) | |
tree | 811a5f407b6ddf847eb79ef305ee448c8b4f8577 | |
parent | 1e5b50096a33d50046d9ab9d3c0ff73e1f24d491 (diff) |
Fix C-c b behaviour with new Magit
-rw-r--r-- | lisp/init-git.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el index 66bcfaa..a99af82 100644 --- a/lisp/init-git.el +++ b/lisp/init-git.el @@ -16,7 +16,12 @@ (global-set-key (kbd "C-x m") 'magit-status) ;; magit blame keybinding -(global-set-key (kbd "C-c b") 'magit-blame-mode) +(global-set-key (kbd "C-c b") + (lambda () + (interactive) + (if magit-blame-mode + (magit-blame-quit) + (call-interactively 'magit-blame)))) (defun magit-diff-visit-file-noselect (file &optional other-window) "Visit current item, but don't select it." |