[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advising quit-window

From: Stefan Monnier
Subject: Re: Advising quit-window
Date: Thu, 27 Oct 2011 08:23:39 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

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

Then use a different redefinition:
(global-set-key [remap quit-window]
  (lambda () (interactive) (quit-window (not current-prefix-arg))))


reply via email to

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