Emacs move around split windows in a specified direction?

后端 未结 7 1094
陌清茗
陌清茗 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:43

    Add this to your init file:

    (windmove-default-keybindings)
    

    Then you can use SHIFT+arrow to move to the next adjacent window in the specified direction.

    You can specify a different modifier if you prefer, by passing an argument (defaults to 'shift).

    Or just bind whatever you like to these functions:

    • windmove-up
    • windmove-down
    • windmove-left
    • windmove-right

    You can also add FrameMove to the mix, to make this work transparently across multiple frames.

    For numbered window navigation, there's switch-window.el.

提交回复
热议问题