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

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

Toggle Keybinding


From: Paulo J. Matos
Subject: Toggle Keybinding
Date: Sun, 30 Jul 2006 10:32:31 +0100

Hi,
I'm setting in .emacs (cvs-emacs) the following:
(add-hook 'c++-mode-hook 'hs-minor-mode)

(add-hook 'c++-mode-hook
          (lambda ()
            (local-set-key "M-+" 'hs-toggle-hiding)))

For some reason the keybinding is not working. But if I do
local-set-key in emacs everything seems to go fine! :-)

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

--
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group




reply via email to

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