开发者

How to bind C-` (backquote) in emacs

I would like to bind C-` (control-backquote) but I could not do it.

The sexp

(global-set-key "\M-`" 'other-window)

works, whereas

(global-set-key "\C-`" 'other-window)

doesn't. It fails with the "Inv开发者_StackOverflow社区alid modifier in string" error.


"\C-a" and similar do work because there is a ASCII code for them. There is none for C-`, simply use

(kbd "C-`")

By the way, this often more portable from one emacsen to another.


Since it is fair to answer my own question:

(global-set-key [?\C-`] 'other-window)

But I don't know the meaning of that extra question mark.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜