[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

;; 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))))


reply via email to

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