Evil, Aquamacs, ctrl-w, and undo

Frank Fischer frank.fischer at mathematik.tu-chemnitz.de
Wed Oct 5 13:19:40 CEST 2011


On Wed, Oct 05, 2011 at 12:16:11PM +0200, Alan Schmitt wrote:
> On 5 oct. 2011, at 11:57, Alan Schmitt wrote:
> 
> > I'm going to try to unbind it
> 
> I thought this would be easy, but for some reason it does not work.
> 
> I put this in my .emacs file:
> (global-unset-key "\C-w")
> 
> and it did not work. I even tried to evaluate it (C-x C-e), and it still does not remove the binding.
> 
> Am I doing something wrong?

The problem is that the whole change you make during insert-state is
recorded as a single undo. In order to inhibit C-w you could use something like

(define-key evil-insert-state-map (kbd "C-w") 'undefined)

Frank



More information about the implementations-list mailing list