unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Paulo J. Matos" <pocmatos@gmail.com>
Subject: Toggle Keybinding
Date: Sun, 30 Jul 2006 10:32:31 +0100	[thread overview]
Message-ID: <11b141710607300232l28202a8aw2f1c0bf3122c62e2@mail.gmail.com> (raw)

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	other threads:[~2006-07-30  9:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-30  9:32 Paulo J. Matos [this message]
2006-07-31 15:17 ` Toggle Keybinding Kevin Rodgers
2006-07-31 22:28   ` Paulo J. Matos
2006-08-01 15:22     ` Kevin Rodgers
     [not found] <mailman.4656.1154251955.9609.help-gnu-emacs@gnu.org>
2006-07-30 10:33 ` wenbinye
2006-07-30 11:00 ` Harald Hanche-Olsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11b141710607300232l28202a8aw2f1c0bf3122c62e2@mail.gmail.com \
    --to=pocmatos@gmail.com \
    --cc=pocm@sat.inesc-id.pt \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).