Skip to content

Commit

Permalink
C-g kills buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
philjackson committed Aug 31, 2010
1 parent 1d73925 commit c351215
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion magit-key-mode.el
Expand Up @@ -183,7 +183,7 @@ put it in magit-key-mode-key-maps for fast lookup."
(modifiers (cdr (assoc 'modifiers options))))
(let ((map (make-sparse-keymap)))
;; all maps should 'quit' with C-g
(define-key map (kbd "C-g") 'bury-buffer)
(define-key map (kbd "C-g") 'magit-key-mode-kill-buffer)
(when actions
(dolist (k actions)
(define-key map (car k) `(lambda ()
Expand Down Expand Up @@ -236,6 +236,7 @@ put it in magit-key-mode-key-maps for fast lookup."
(magit-key-mode-redraw for-group))

(defun magit-key-mode-kill-buffer ()
(interactive)
(kill-buffer magit-key-mode-buf-name))

(defun magit-key-mode (for-group &optional original-opts)
Expand Down

0 comments on commit c351215

Please sign in to comment.