Emacs global-set-key to C-TAB

后端 未结 6 1639
遥遥无期
遥遥无期 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:42

    Note that you can also call global-set-key interactively. You can then see the correct binding command with repeat-complex-command (see also KeybindingGuide):

    1. M-x: global-set-key
    2. Type the key combination you want
    3. Use C-x ESC ESC (repeat-complex-command) to see the apropiate command. In your case I get:

      (global-set-key (quote [C-tab]) (quote my-func))
      

提交回复
热议问题