Emacs global-set-key to C-TAB

后端 未结 6 1636
遥遥无期
遥遥无期 2021-02-01 01:47

I\'m trying to set a key-binding to Ctrl+TAB in Emacs. I used the following call:

(global-set-key (read-kbd-macro \"C-TAB\") \'my-func)

Howeve

6条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-01 02:33

    In the gnu emacs lisp reference manual, section 21.1 "Key Sequences", they reference using \t to represent the tab key.

    Using the syntax shown in the Lisp reference manual, I would use the following command:

    (global-set-key (kbd "C-\t") 'my-func)

提交回复
热议问题