General

Juan on Programming: Emacs keymaps - prefix keys

 

 

SO: globally overrider bindings by using a minor-mode map

 

 

Meta and Super

EmacsWiki:MetaKeyProblems

 

Can you have EVERYTHING/Anything as a modifier key?

 

http://everything2.com/e2node/useful%2520emacs%2520lisp%2520functions - includes lines on binding the windows key (if you have a windows key)

 

Stack Overflow: setting up windows to use Hyper and Super

 

; 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


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

 

 

Emacs-keys for other applications

 

XKeymacs

XKeymacs -- emacs-like bindings for ALL windows apps

 

tricky to get used to, if you’re used to mentally switching between Emacs and other modes already. And have a lot of program-specific bindings stuck in your head -- like Fire Fox?: C-t new tab, C-k web-search, C-space Ubiquity, etc.

 

But, you can go into XKeymacs and delete certain key-sequences for specific applications (such as the above. That’s nice.

 

Now, what I’d _really_ like, is the ability to rebind keystrokes to app-commands! Probably difficult, if not impossible to do outside of the app, right? hrm....

 

 

Office-suite

http://www.rath.ca/Misc/VBacs/

 

see others

Firefox keybindings

 

 

Ergonomics

http://www.santafe.edu/~nelson/ergo/
Stack Overflow: what is the best way to avoid getting emacs-pink? - and discussion of various solutions.

 

SOMEWHERE, I saw somebody say that yoga was the best help they had found. Don’t recall where....

 

 

Swap Caps Lock and Ctrl keys

http://steve.yegge.googlepages.com/effective-emacs#item1
http://trey-jackson.blogspot.com/2008/03/emacs-tip-14-caps-lock-on-windows.html - includes some variations, and MS software t do it for you
http://www.manicai.net/comp/swap-caps-ctrl.html
http://www.gnu.org/software/emacs/windows/faq3.html
http://davengrace.com/dave/programming/

 

see notes that suggest it can be done for a single-user only. hrm. should probably use this at work....

 

also see Registry

 

Other swappings

 

AutoHotKeys script

http://autohotkey.com
http://www.emacswiki.org/emacs/MovingTheCtrlKey#toc15
NOTE: On Win7 running in Administrator mode excludes this app; logging into/out of the computer will avoid this app. Which, on a work-machine, is a lot more co-worker/IT friendly. At a previous job, IT would come to do updates, and not be able to log in since, as I had swapped via the registry for all-users, the Ctrl-key wasn’t working....

 

AutoHotKey has a lot more potential beyond swapping these keys.

 

 

See Also

FireFox
Programming.Keyboard
StringCanPhone.Keyboard#Symbolics

 

 

Tags

Emacs Keybindings Productivity


 

Comments

No comments yet.

 

 

Add Comment

Heading:
 Your Message
 
 Enter value ← Have you entered the code number?
Author: