emacs-nox 'C-,' & “C-”。键绑定不起作用

发布于 2024-10-04 05:51:59 字数 216 浏览 0 评论 0原文

我有几个 emacs 键绑定,如下所示:

(global-set-key (kbd "C-,") 'beginning-of-buffer)
(global-set-key (kbd "C-.") 'end-of-buffer)

最近,我意识到这些键绑定在 emacs-nox 中不起作用。是否可以让它们工作,或者这只是 emacs-nox 的限制?

I've got a couple emacs keybindings as follows:

(global-set-key (kbd "C-,") 'beginning-of-buffer)
(global-set-key (kbd "C-.") 'end-of-buffer)

Recently, I realized these don't work in emacs-nox. Is it is possible to get them working, or is this just a limitation of emacs-nox?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

香草可樂 2024-10-11 05:51:59

根据大众的要求:

这可能是您的终端的限制。

我使用过的大多数终端根本不发送任何 C-,C-. 的键码。

您可以通过执行Mxdescribe-key(通常绑定到Ch k)来检查这一点,然后键入C-,和/或C-.。如果当您按下按键时 Emacs 没有任何反应,那么它就是您的终端。

By popular demand:

It's probably a limitation of your terminal.

Most terminals I've used don't send any keycodes at all for C-, and C-..

You can check this by executing M-x describe-key (usually bound to C-h k), and then typing C-, and/or C-.. If Emacs does nothing when you hit the keys, it's your terminal.

最好是你 2024-10-11 05:51:59

在我的 emacs(21) 上,\C-.\C-, 未注册为键控。我通过 PuTTY 使用终端。默认键绑定 \M-<\M-> 分别适用于缓冲区开始和缓冲区结束。

因此,如果您的 emacs-nox 未将它们注册为键入的键,请使用默认键或设置一些其他键。

On my emacs(21), \C-. and \C-, don't register as keyed. I use terminal through PuTTY. The default keybindings \M-< and \M-> works fine for me for beginning-of-buffer and end-of-buffer respectively.

So either use the default keys or set some other keys if your emacs-nox does not register them as keyed in.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文