LoginSignup
14
14

More than 5 years have passed since last update.

iTerm2 で emacs で C-tab で other-window

Last updated at Posted at 2012-04-21

C-x o で other-window するのは2ストロークでつらいので Chrome みたいに C-tab とか1ストロークにしたい。

ただ、iTerm2 でターミナル内の emacs で C-tab は、tab が C-i 扱いなのでとれない。そこで

  • iTerm2 の preference の keys で C-tab に別のキーを送るようにカスタマイズ ** 自分は M-p にした
  • そのキーに、other-window を割り当て

で ok

ついでなので http://d.hatena.ne.jp/rubikitch/20100210/emacs から other-window-or-split も拝借。

init.el
(defun other-window-or-split ()
  (interactive)
  (when (one-window-p)
    (split-window-horizontally))
  (other-window 1))
(global-set-key (kbd "M-p") 'other-window-or-split)

tab が C-i なのに気づかなくて3時間くらいはまりました...。

14
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
14