[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: quit-window
From: |
Juri Linkov |
Subject: |
Re: quit-window |
Date: |
Sun, 23 Oct 2011 16:27:31 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) |
>> quit-window bound to `q' in a keymap provides a nice, consistent UI for
>> getting rid of the window and killing/burying its buffer.
>
> But only when you are viewing a buffer.
BTW, what do you think about adding to window.el something like:
(defun quit-window-kill-buffer ()
"Quit WINDOW and kill its buffer."
(interactive)
(quit-window t))
The problem is that for some modes it's desirable to kill buffers as well
when quitting. Then it would be easier to put in .emacs:
(define-key dired-mode-map "q" 'quit-window-kill-buffer)
Or even better to add a new customizable variable with a list of modes
where `q' kills the buffer, e.g. `quit-window-kill-buffer-modes'
that could be customized to add modes like `dired-mode'.
- Re: quit-window, (continued)
- Re: quit-window, Christoph Scholtes, 2011/10/23
- Re: quit-window, Chong Yidong, 2011/10/23
- Re: quit-window, Richard Stallman, 2011/10/24
- Re: quit-window, Eli Zaretskii, 2011/10/24
- Re: quit-window, martin rudalics, 2011/10/24
- Re: quit-window, Richard Stallman, 2011/10/25
- Re: quit-window, Christoph Scholtes, 2011/10/24
- Re: quit-window, martin rudalics, 2011/10/25
- Re: quit-window, Richard Stallman, 2011/10/25
Re: quit-window, martin rudalics, 2011/10/23
- Re: quit-window,
Juri Linkov <=
- Re: quit-window, Christoph Scholtes, 2011/10/23
- Re: quit-window, martin rudalics, 2011/10/23
- Re: quit-window, Juri Linkov, 2011/10/24
- Re: quit-window, Chong Yidong, 2011/10/24
- Re: quit-window, Juri Linkov, 2011/10/25
Re: quit-window, Christoph Scholtes, 2011/10/23