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?
From SecureCRT's menu, choose Options | Session Options. Under Emulation | Emacs, select Use Alt as Meta key. Select OK.
The META key is sometimes labelled ALT . If you do not have it, press ESCAPE instead, followed by, say, x . frame: the rectangular "area" in which Emacs runs; Emacs starts with only one, but you can create more (look under the menu Files, or type C-x 5 2 ).
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With