* How to do a Ctl-Grave key binding?
@ 2013-03-16 12:17 zeb7k
2013-03-17 1:29 ` B. T. Raven
2013-03-17 2:26 ` Drew Adams
0 siblings, 2 replies; 3+ messages in thread
From: zeb7k @ 2013-03-16 12:17 UTC (permalink / raw)
To: help-gnu-emacs
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to do a Ctl-Grave key binding?
2013-03-16 12:17 How to do a Ctl-Grave key binding? zeb7k
@ 2013-03-17 1:29 ` B. T. Raven
2013-03-17 2:26 ` Drew Adams
1 sibling, 0 replies; 3+ messages in thread
From: B. T. Raven @ 2013-03-17 1:29 UTC (permalink / raw)
To: help-gnu-emacs
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: How to do a Ctl-Grave key binding?
2013-03-16 12:17 How to do a Ctl-Grave key binding? zeb7k
2013-03-17 1:29 ` B. T. Raven
@ 2013-03-17 2:26 ` Drew Adams
1 sibling, 0 replies; 3+ messages in thread
From: Drew Adams @ 2013-03-17 2:26 UTC (permalink / raw)
To: zeb7k, help-gnu-emacs
> 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.
Aka backquote.
> Does anyone know a sequence that will work?
> (global-set-key [C-`] 'my-own-specialized-outdent)
(global-set-key (kbd "C-`") 'my-own-specialized-outdent)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-17 2:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-16 12:17 How to do a Ctl-Grave key binding? zeb7k
2013-03-17 1:29 ` B. T. Raven
2013-03-17 2:26 ` Drew Adams
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).