有没有办法在Windows上获得超过Meta和Ctrl?很长一段时间Emacs用户想要Hyper / Super

时间:2008-12-10 16:43:12

标签: windows emacs user-interface

我已经在Linux上使用过Emacs多年了,而且我在 Hyper Super 下有很多个人有用的键绑定。现在我在Windows上使用Emacs并且缺少那些额外的键绑定。

在Windows中是否有某种方法可以获得 Ctrl Meta 以外的修饰键?

2 个答案:

答案 0 :(得分:17)

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设置中尝试上面的代码。罗,它的作品!尴尬的演示如下:

(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)

除非我做了别的其他时髦的事情,否则这些工作本身就是如此;我正在运行2008-08-19的GNU Emacs 23.0.60.1(i386-mingw-nt5.1.2600)LENNART-69DE564(打补丁)

答案 1 :(得分:-1)

您可能会发现这很困难,因为在他们访问您的应用之前,Windows Shell(explorer.exe)会拦截Super(并且我相信Hyper)。