Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为 C- 设置全局密钥;通过将以下代码放在 init.el 文件中来创建密钥。
(global-set-key "\C-;" 'backward-kill-word)
但这会在 *Warning* 缓冲区中出现以下错误
error "Invalid modifier in string"
试试这个,
(global-set-key [(control ?\;)] 'backward-kill-word)
另一种方式,我想最简单的方法是使用kbd功能
kbd
(global-set-key (kbd "C-;") 'backward-kill-word)