Sunday, May 18, 2014

A package smartrep to save fifth finger on left hand

To move around windows, I have to type "C-x o" often.  A package "smartrep" reduces a burden on fifth finger on left hand.

(require 'smartrep)
(smartrep-define-key global-map "C-x"
  '(("o" . 'other-window)
    ("k" . '(lambda () (interactive) (kill-buffer (window-buffer))))    ("0" . 'delete-window)
    ("2" . 'split-window-below)
    ("3" . 'split-window-right)
    ("^" . 'enlarge-window)
    ("{" . 'shrink-window-horizontally)
    ("}" . 'enlarge-window-horizontally)))