From: Harald Hanche-Olsen <hanche@math.ntnu.no>
Subject: Re: Toggle Keybinding
Date: Sun, 30 Jul 2006 13:00:58 +0200 [thread overview]
Message-ID: <pco4pwzqrv9.fsf@shuttle.math.ntnu.no> (raw)
In-Reply-To: mailman.4656.1154251955.9609.help-gnu-emacs@gnu.org
+ "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
next prev parent reply other threads:[~2006-07-30 11:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.4656.1154251955.9609.help-gnu-emacs@gnu.org>
2006-07-30 10:33 ` Toggle Keybinding wenbinye
2006-07-30 11:00 ` Harald Hanche-Olsen [this message]
2006-07-30 9:32 Paulo J. Matos
2006-07-31 15:17 ` Kevin Rodgers
2006-07-31 22:28 ` Paulo J. Matos
2006-08-01 15:22 ` Kevin Rodgers
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pco4pwzqrv9.fsf@shuttle.math.ntnu.no \
--to=hanche@math.ntnu.no \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.