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

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

Re: Toggle Keybinding


From: Harald Hanche-Olsen
Subject: Re: Toggle Keybinding
Date: Sun, 30 Jul 2006 13:00:58 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (berkeley-unix)

+ "Paulo J. Matos" <pocmatos@gmail.com>:

| (add-hook 'c++-mode-hook
|         (lambda ()
|           (local-set-key "M-+" 'hs-toggle-hiding)))
|
| For some reason the keybinding is not working.

It probably does, but you may have a hard time typing a capital M in
the buffer, since M is now a prefix.

| Any ideas? Should the + in "M-+" be escaped somehow?

No, the M should, in order to be interpreted as meta:

"\M-+" should do the trick.
You can also use a vector: [?\M-+].

-- 
* Harald Hanche-Olsen     <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
  when there is no ground whatsoever for supposing it is true.
  -- Bertrand Russell


reply via email to

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