Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to do a Ctl-Grave key binding?

9 views
Skip to first unread message

ze...@hotmail.com

unread,
Mar 16, 2013, 8:17:12 AM3/16/13
to
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)

B. T. Raven

unread,
Mar 16, 2013, 9:29:35 PM3/16/13
to
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

Drew Adams

unread,
Mar 16, 2013, 10:26:21 PM3/16/13
to ze...@hotmail.com, help-gn...@gnu.org
> 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)


0 new messages