有没有办法在Windows上获得超过Meta和Ctrl的方法?长时间Emacs用户想要Hyper / Super [英] Is there some way to get more than Meta and Ctrl on Windows? Long time Emacs user wants Hyper/Super
问题描述
在Windows中有一些方法来获取除之外的修饰键Ctrl 和元?
;将PC键盘的各种键设置为超级或超级
(setq w32-pass-lwindow-to-system nil
w32-pass-rwindow-to-system nil
w32-pass-apps- to-system nil
w32-lwindow-modifier'super ;;左Windows键
w32-rwindow-modifier'super ;;右键Windows
w32-apps-modifier'hyper);;菜单键
更新:所以,我实际上尝试上面的代码在我的自己的Win32 emacs设置。 Lo,它的作品!尴尬的演示如下:
(defun super-test()
(interactive)
(messageSuper )
(defun hyper-test()
(interactive)
(messageHyper))
(全局设置键[(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)
I've used Emacs for years on Linux, and I have lots of personally useful keybindings I've put under Hyper and Super. Nowadays I'm using Emacs on Windows and am missing those extra keybindings.
Is there some way in Windows to get modifier keys other than Ctrl and Meta?
There are some settings mentioned in 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
Update: so, I actually tried the above code in my own Win32 emacs setup. Lo, it works! awkward demo follows:
(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)
Unless I've done something else funky, these work natively; I'm running GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-08-19 on LENNART-69DE564 (patched)
这篇关于有没有办法在Windows上获得超过Meta和Ctrl的方法?长时间Emacs用户想要Hyper / Super的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!