[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Looking for a sneaky key binding
From: |
Kevin Rodgers |
Subject: |
Re: Looking for a sneaky key binding |
Date: |
Mon, 05 Mar 2007 21:44:28 -0700 |
User-agent: |
Thunderbird 1.5.0.10 (Macintosh/20070221) |
Dan Bensen wrote:
After making a new command, I wanted to bind it to M-C-|.
This form didn't work:
(global-set-key <name> 'my-command)
where <name> was equal to
"\M-\C-|"
"\M-\C-\|"
"|\M-\C-\||"
on separate attempts. The error message was always
"Invalid modifier in string".
See these sections of the Emacs Lisp manual:
Nonprinting Characters in Strings
Non-ASCII Characters in Strings
Changing Key Bindings
So is there another trick somewhere that does this,
or is it not supported?
Use the vector notation (Emacs manual: Rebinding Keys in Your Init File):
[?\M-\C-|]
--
Kevin Rodgers
Denver, Colorado, USA