help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: disabling key bindings


From: Phillip Lord
Subject: Re: disabling key bindings
Date: 27 Nov 2003 16:33:54 +0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.93

>>>>> "Jesper" == Jesper Harder <harder@myrealbox.com> writes:

  Jesper> Phillip Lord <p.lord@russet.org.uk> writes:


  >> I a new major mode, how do I disable all keybindings, except for
  >> those that I specify. In particular I would want all the normally
  >> self-insert keys to do nothing at all (except where I have bound
  >> the explicitly).

  Jesper> Sounds a bit like Erik Naggums's "poor man's vi-mode":

  Jesper> ,---- | (use-global-map (make-sparse-keymap))
  Jesper> | 
  Jesper> | like vi, it will beep at everything you do, and you can't quit.
  Jesper> | have fun!
  Jesper> `----



Ah yeah, I'd forgotten about that. 

I shall give this a go. 

Cheers

Phil


reply via email to

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