[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Advising quit-window
From: |
Christoph Scholtes |
Subject: |
Re: Advising quit-window |
Date: |
Wed, 26 Oct 2011 21:55:52 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (windows-nt) |
Stefan Monnier <address@hidden> writes:
>> ;; 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))))
>
> You can also do
>
> (global-set-key [remap quit-window] (lambda () (interactive) (quit-window
> 'kill)))
Thanks. I didn't know that you could remap command like that. However,
this fixes quit-window to always kill. I like to be able to bury it with
`C-u q'.