[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: quit-window
From: |
martin rudalics |
Subject: |
Re: quit-window |
Date: |
Sun, 23 Oct 2011 20:58:52 +0200 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
> 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'.
Is there any reason why one should not use C-x k here?
martin
Re: quit-window, martin rudalics, 2011/10/23
Re: quit-window, Christoph Scholtes, 2011/10/23