[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: quit-window
From: |
Christoph Scholtes |
Subject: |
Re: quit-window |
Date: |
Sun, 23 Oct 2011 10:04:59 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (windows-nt) |
Juri Linkov <address@hidden> writes:
> 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.
`C-u q' will kill the buffer instead of burying it.
I actually prefer to kill the buffer by default so I have this in my
.emacs:
;; Advise quit-window to kill buffer instead of burying it
(defadvice quit-window (before advise-quit-window activate)
(ad-set-arg 0 (not (ad-get-arg 0))))
Christoph
- Re: quit-window, (continued)
- 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, Christoph Scholtes, 2011/10/23