我希望将键序列
(如https://www.gnu.org/software/emacs/manual/html_node/efaq/Binding-keys-to-commands.html所述)
然而,它并没有起作用。上面一行中的“local-set-key”也无法工作。“C-TAB”也无法工作。错误信息为:
问题出在哪里,如何解决?
C-tab
绑定到indent-rigidly
。在我使用M-x local-set-key
交互式执行后,它可以正常工作。但是我希望每次启动Emacs时都能应用它。为此,我在我的init.el
文件中添加了以下行:(global-set-key (kbd "C-tab") (indent-rigidly))
(如https://www.gnu.org/software/emacs/manual/html_node/efaq/Binding-keys-to-commands.html所述)
然而,它并没有起作用。上面一行中的“local-set-key”也无法工作。“C-TAB”也无法工作。错误信息为:
<C-tab> is undefined
问题出在哪里,如何解决?
(indent-rigidly)
-- as used by you -- and(quote indent-rigidly)
-- using the general format explained on the page you've linked to -- are not equivalent. The latter is unexpectedly verbose, mind -- the usual way of writing(quote indent-rigidly)
, and what you are likely to see elsewhere, is'indent-rigidly
- phils