diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-01-31 23:55:10 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-01-31 23:55:10 -0500 |
commit | b8124812952236e06d83b32e30e6d15e1b53f667 (patch) | |
tree | b828d8b71d6b462e7ff3136658c721d74bac3663 | |
parent | 4495692a7f55c85ff2b51b4acc6a60028aacded6 (diff) | |
download | emacs.d-b8124812952236e06d83b32e30e6d15e1b53f667.tar.gz |
Update for renamed Magit command
Magit commit a44ed1b9c3b0ffa09b988cb8305da0105e4702ea
-rw-r--r-- | lisp/init-git.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el index 356f9e9..67f1924 100644 --- a/lisp/init-git.el +++ b/lisp/init-git.el @@ -141,11 +141,11 @@ START-POINT set to the current branch. (magit-run-git "branch" (concat "b/" it)) (user-error "No current branch"))) -(defun km/magit-mode-quit-all-windows (&optional kill-buffer) +(defun km/magit-mode-bury-all-windows (&optional kill-buffer) "Run `magit-mode-quit-window' until no longer in Magit buffer." (interactive "P") (while (derived-mode-p 'magit-mode) - (magit-mode-quit-window kill-buffer))) + (magit-mode-bury-buffer kill-buffer))) (defun km/git-rebase-show-commit () "Show the commit on the current line if any. @@ -168,7 +168,7 @@ the commit buffer. And no dinging." ;; my binding for `km/zsh-ansi-term-other-window'. (define-key magit-mode-map (kbd "C-x 4 a") nil) (define-key magit-mode-map "N" 'km/magit-stage-file-intent) - (define-key magit-mode-map "Q" 'km/magit-mode-quit-all-windows) + (define-key magit-mode-map "Q" 'km/magit-mode-bury-all-windows) ;; `magit-diff-visit-file-worktree' is also on C-RET. (define-key magit-file-section-map (kbd "C-j") 'magit-diff-visit-file-worktree) |