[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Looking for a sneaky key binding
From: |
weber |
Subject: |
Re: Looking for a sneaky key binding |
Date: |
4 Mar 2007 18:02:02 -0800 |
User-agent: |
G2/1.0 |
On 4 mar, 22:09, Dan Bensen <randomg...@cyberspace.net> 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".
>
> So is there another trick somewhere that does this,
> or is it not supported?
>
> --
> Danwww.prairienet.org/~dsb
Yes, i had some problems too.. But with this syntax worked:
(global-set-key (kbd "M-C-\|") '(lambda() (interactive) (message
"Teste")))
It's hard combo to type though: you have to hold Ctrl, Alt and
Shift! :)
Cheers,
weber