Avoiding RSI one keypress at a time

Posted on Wed 04 November 2009 in general

Much as I love emacs some of the key combinations it expects of you to a) remember b) use are don't help when your trying to ameliorate the effects of RSI. As I spend an lot of time in compilation mode the following quick win helps:

(define-key compilation-mode-map (kbd "n") 'compilation-next-error)
(define-key compilation-mode-map (kbd "p") 'compilation-previous-error)

If you try executing (self-insert-command) the buffer would complain it's read-only anyway. I took this single keypress approach to the next level when I was doing a lot of patch merging and tweaked diff-mode to be a little less multi-finger.