Emacs move around split windows in a specified direction?

后端 未结 7 1113
陌清茗
陌清茗 2020-12-17 10:38

In Terminal Emacs (no mouse), I\'m using split windows to work with multiple buffers at the same time. I\'m finding moving between the split windows much more painful than h

7条回答
  •  忘掉有多难
    2020-12-17 10:44

    You can give a prefix argument to C-x o like this C-u -1 C-x o. This way you can go any number of windows forward or backward. Personally I think it's easier to create a special key for moving back one window. I have this in my .emacs:

    (defun other-window-backward ()
      "Goto previous window"
      (interactive)
      (other-window -1))
    (global-set-key (kbd "\C-x p") 'other-window-backward)
    

提交回复
热议问题