[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to do a Ctl-Grave key binding?
From: |
B. T. Raven |
Subject: |
Re: How to do a Ctl-Grave key binding? |
Date: |
Sat, 16 Mar 2013 20:29:35 -0500 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 |
> Hi, I want to do a Ctl-Grave key binding. Just to be clear, grave, AKA
> backtick, is the key below ~ (tilde) on most PC keyboards.
>
> Hi, I've tried several variations of the last line from my .EMACS startup
> below but cannot get it to compile. (I think once I did have a syntax that
> would compile but then if I actually tried to use the sequence it would not
> respond.)
>
> Does anyone know a sequence that will work?
>
> I am using GNU EMACS 23.2.1 (i386-mingw-nt6.1.7601).
>
> (global-set-key [C-tab] 'my-own-specialized-indent)
> (global-set-key [C-`] 'my-own-specialized-outdent)
>
I could evaluate this form:
(global-set-key [(control \`)] (lambda () (interactive) (insert "hello" )))
so I think you could substitute your function for the lambda.
Ed