控制+ ,在 Terminal.app 中
我在窗口版本的 emacs 中使用快捷键 C-,
。
(global-set-key (kbd "C-,") 'dabbrev-expand)
我的问题是这个快捷方式在 emacs 的控制台版本中不起作用。
我已经尝试了很多东西(.inputrc
,set bind-tty-special-chars off
,bind
命令在.bashrc< /code>) 但似乎没有任何作用;我从来没有成功地用这个组合键收到过东西。
我已成功绑定其他非标准快捷键,例如 Ctrl-
。
I use the shortcut C-,
with the window version of emacs.
(global-set-key (kbd "C-,") 'dabbrev-expand)
My problem is that this shortcut does not work in the console version of emacs.
I've tried many things (.inputrc
, set bind-tty-special-chars off
, bind
command in .bashrc
) but nothing seems to work; I never manage to receive something with this combination of keys.
I've managed to bind other non standards shortcuts like Ctrl-<left-arrow>
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Control-Comma 不会映射到系统键盘映射中的控制字符。因此,它仅作为逗号发送到应用程序。然后,终端将这个逗号发送到 tty,Emacs 在那里接收它。如果您希望 Control-Comma 映射到 Emacs 可以与普通逗号区分开的控制字符或其他序列,则必须更改系统键盘映射。这样做是留给读者的练习。
Control-Comma does not map to a control character in the system keyboard map. Therefore, it is sent to applications as just a comma. Terminal then sends this comma to the tty, where Emacs receives it. If you want Control-Comma to map to a control character or other sequence that Emacs can distinguish from a normal comma, you'll have to alter the system keyboard map. Doing so is left as an exercise for the reader.