diff options
| author | Eivind Fonn <evfonn@gmail.com> | 2019-10-31 13:07:05 +0100 |
|---|---|---|
| committer | Eivind Fonn <evfonn@gmail.com> | 2019-10-31 13:07:05 +0100 |
| commit | 10f04377cb5a3701f4175e1a856094517d11dd65 (patch) | |
| tree | 4eb45e51550cd6d06d6c4906cf8adbe213fbeed4 /evil-common.el | |
| parent | 3350ab3f762903823aff3297c88c2e883cb9595b (diff) | |
q in evil-list-view-mode also deletes underlying buffer
Diffstat (limited to 'evil-common.el')
| -rw-r--r-- | evil-common.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/evil-common.el b/evil-common.el index 84166f2..ba47676 100644 --- a/evil-common.el +++ b/evil-common.el @@ -3845,7 +3845,11 @@ should be left-aligned for left justification." (entry (elt tabulated-list-entries (1- line)))) (funcall evil-list-view-select-action (nth 1 entry))))) -(define-key evil-list-view-mode-map (kbd "q") #'quit-window) +(defun evil-list-view-quit () + (interactive) + (quit-window 'kill)) + +(define-key evil-list-view-mode-map (kbd "q") #'evil-list-view-quit) (define-key evil-list-view-mode-map [follow-link] nil) ;; allows mouse-1 to be activated (define-key evil-list-view-mode-map [mouse-1] #'evil-list-view-goto-entry) (define-key evil-list-view-mode-map [return] #'evil-list-view-goto-entry) |
