xmonad 和 Emacs:“mod”问题 钥匙
几周前我开始使用 xmonad 作为我的窗口管理器。 我喜欢它。 这很棒。 但从那时起,当我在 emacs 中并且想要按“ALT”键时,我不得不经常使用“ESC”键。 这是因为 xmonad 将“ALT”键用作“mod”键。
有没有办法将 emacs mod 键分配给“ALT”键以外的任何键,就像将其分配给“windows”键一样。
任何帮助将不胜感激。
谢谢, 维马尔
P.S. 这是我正在使用的键盘 http://tinyurl.com/c4955o
I started using xmonad as my window manager a couple of weeks ago. I love it. Its great. But since then I have had to use 'ESC' key a lot when I am in emacs and want to press the 'ALT' key. This is because 'ALT' key is used by xmonad as the 'mod' key.
Is there a way to assign the emacs mod key to anything other than the 'ALT' key like assigning it to the 'windows' key.
Any help would be higly appreciated.
Thanks,
Vimal
P.S. this is the keyboard I am using
http://tinyurl.com/c4955o
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
实际上,将 Xmonad 的 mod 键指定为“Windows”(超级)键会容易得多。 这就是我所做的!
操作方法如下:
Xmonad 常见问题
Actually, it would be much easier to assign Xmonad's mod key to be the "Windows" (super) key. It's what I do!
Here's how:
Xmonad FAQ
以 Alt 修饰符开头的绑定通常与应用程序冲突,因此我总是对 XMonad 配置进行的第一个修改是将修饰符更改为 Super (Windows) 键。
我喜欢这样的想法:与窗口管理相关的所有内容都分配给专门用于此目的的修饰符,这使得它在概念上隔离并且更容易记住。
更多详细信息可以在有关配置 XMonad 的教程中找到。
Bindings starting with Alt modifier often conflict with applications, so the first modification I always make to XMonad configuration is to change the modifier to the Super (Windows) key.
I like the idea that everything associated with window management is assigned to a modifier used just for this purpose, this makes it conceptually isolated and easier to remember.
More details can be found in a great tutorial on configuring XMonad.
您可以将 xmonad 配置为使用 Emacsey 按键序列,而不是默认的 Mod-X 或 Mod-Shift-X。 详细信息位于此处。
You can configure xmonad to use Emacsey key sequences instead of the default Mod-X or Mod-Shift-X. Details are here.
emacs 命令通常显示 M-/ ,这意味着按住 Meta 键,然后按正斜杠。 您需要使用 xkeycaps 来确定键盘上的哪个键分配了 META 修饰符,这就是您想要用于 META 调和弦的调。
此外,xkeycaps 允许您将 META 修饰符分配给您喜欢的任何键,因此如果您不喜欢它的设置方式,您可以修复它。
你可能想彻底阅读 xkeycaps 手册页,或者在这里发布更多问题,如果你将 META 设置到某些地方,GNOME 将无法正确拾取 META 键,但我已经忘记了我到底遇到了什么问题。
emacs commands are often show M-/ which means hold the Meta key, and press forward slash. You need to use xkeycaps to figure out which key on your keyboard is assigned the META modifier, and that's the key you want to use for META key chords.
Also, xkeycaps lets you assign the META modifier to whatever key you like, so if you don't like the way it's setup, you can fix it.
You will probably want to read the xkeycaps man page thoroughly, or post more questions here, if you set META to some places, GNOME won't pick up the META key correctly, but I've forgotten exactly what problems I had.