我在
Linux上使用了多年的Emacs,而且我已经在Hyper和Super下面提供了很多个人有用的键盘绑定.现在我在Windows上使用Emacs,并且缺少这些额外的键盘.
有没有办法在Windows中获得除Ctrl和Meta之外的修饰键?
this google-groups thread:中提到了一些设置
; setting the PC keyboard's various keys to Super or Hyper (setq w32-pass-lwindow-to-system nil w32-pass-rwindow-to-system nil w32-pass-apps-to-system nil w32-lwindow-modifier 'super ;; Left Windows key w32-rwindow-modifier 'super ;; Right Windows key w32-apps-modifier 'hyper) ;; Menu key
更新:所以,我实际上尝试了我自己的Win32 emacs设置中的上述代码. Lo,它的作品!尴尬的演示如下:
(defun super-test () (interactive) (message "Super")) (defun hyper-test () (interactive) (message "Hyper")) (global-set-key [(super h)] 'super-test) (global-set-key [(hyper h)] 'hyper-test)
除非我做了别的东西,这些工作本身;我在LENNART-69DE564(补丁)上运行2008-08-19的GNU Emacs 23.0.60.1(i386-mingw-nt5.1.2600)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。