KeyRemap4MacBook
使用再開。
前回は C-pnbf を up down left right へ換えてくれる設定が shell では返って哀しい事になるので使用を断念したのですが...
remap.emacsmode を指定すると Terminal.app が不便になる
以下のように Terminal.app の設定でカーソルキーを ^PNBF に戻すことで回避する。
FAQ/KeyRemap4MacBook
おお、なるほど。
.emacs.el に以下の内容を加える。
(global-set-key [(control x)(right)] 'find-file)FAQ/KeyRemap4MacBook
そしてこちらも。
各計算機で .emacs を使い回す方は以下のような判定を入れると良いかも知れません。
(when (let ((exec "sysctl") (arg "keyremap4macbook.version")) (and (locate-executable exec) (equal "keyremap4macbook"ame (with-temp-buffer (call-process exec nil t nil arg) (goto-char (point-min)) (if (re-search-forward "\\(\\w+\\)" nil t) (match-string 0)))))) (and (global-set-key [(control x) (right)] #'find-file) (eval-after-load "elscreen" #'(and (define-key elscreen-map [(right)] #'elscreen-find-file) (define-key elscreen-map [(up)] #'elscreen-previous) (define-key elscreen-map [(down)] #'elscreen-next))) (eval-after-load "riece" #'(and (define-key riece-dialogue-mode-map [(up)] #'riece-command-part) (define-key riece-dialogue-mode-map [(down)] #'riece-command-names)))))