LoginSignup
4
4

More than 5 years have passed since last update.

Emacs の Window 分割を使いやすく

Last updated at Posted at 2017-07-19

Emacs のウィンドウ分割といえば C-x 2 C-x 3 のことである。
そして残念ながらこれらはデフォルトでは右側や下側にウィンドウを分割してくれるものの、カーソルは元のウィンドウに残ったままになってしまう。
慣れたらどうでもいいことかもしれないが、 tmux なんかはデフォルトでは違う挙動をしていて、個人的にはそっちの方が好き + 統一したいので、いじって見た。

(global-set-key (kbd "C-x 2")
  (lambda()
    (interactive)
    (split-window-below)
    (select-window (next-window))))
(global-set-key (kbd "C-x 3")
  (lambda()
    (interactive)
    (split-window-right)
    (select-window (next-window))))

これでおk。

4
4
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
4
4