emacs-devel
[Top][All Lists]
Advanced

[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'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]