Re:Ask YC: Why is emacs a great editor?
by ragnemalm on Wednesday September 24, 2008 @08:34PM
(#314288)
I can see that this might work with some keyboards, but I think the Apple one is too low-profile.
Also, if you're not using C-M-... shortcuts, you're missing out:
C-M-{s,r} isearch-{forward/backward}-regexp (indispensable)
C-M-% query-replace-regexp (indispensable)
C-M-\ indent-region (indispensable for when M-q would mess up your line breaks)
C-M-x eval-defun (for running changes to your .emacs without restarting)
C-M-q indent-pp-sexp (pretty-print and reindent sexp at point)
C-M-{f,b,u,d,a,e,k,t} forward/back/up/down/beginning/end/kill/transpose sexps
C-M-{n,p} {forward/backward}-list
C-M-v scroll-other-window
And so on. C-h k (describe-key) is your friend.
Use the hand that is not hitting the key: for C-s use your right hand for the Ctrl, and left for s. C-n the other way round. For Meta, make sure that both alt keys work, and use your thumbs: M-x right thumb and left fourth finger.
- You can't do this for C-M combinations, but they are few and far between.
- You have to have a keyboard where the keys "stick out" a little. So it does not work on laptops.
The only real issue I had was that moving around is a little slow and awkward: When going back and forth from C-f/b to C-p/n your hands are moving a lot. So I remapped C-f to C-; and C-b to C-j (and similarly for M-f & M-b) and now I can press Ctrl/Meta with my left hand and move around with my right one: bliss.