如何在 OSX 上的 Carbon Emacs 上交换 CTRL 和 CAPS LOCK,而不在整个操作系统范围内进行?

发布于 2024-07-30 03:57:24 字数 249 浏览 4 评论 0原文

由于对 Textmate 不满意,我最近开始学习 emacs,并作为起点阅读 Steve Yegge 的“Effective Emacs”文章。 我非常喜欢他的 CTRL -> CAPS LOCK 交换,但我不想在操作系统范围内进行交换,我希望每次运行 emacs 时只在 emacs 中进行交换。

我想知道是否有办法在 .emacs 文件中执行此操作,而不是进入系统属性并将其交换为整个操作系统。 我使用的是 Mac OS X Leopard。

I've recently started learning emacs since I was unhappy with Textmate and as a starting point read the "Effective Emacs" article by Steve Yegge. I was very keen on his CTRL -> CAPS LOCK swap, but I don't want to do it OS-wide, I want this swap to only occur in emacs every time I run it.

I was wondering if there's a way to do this in the .emacs file instead of going into system-properties and swapping it for the whole OS. I'm using Mac OS X Leopard.

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

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

发布评论

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

评论(1

猥琐帝 2024-08-06 03:57:24

不幸的是,这在您的 .emacs 文件中是不可能的。

This is, unfortunately, not possible to do in your .emacs file.

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