Emacs, switch to previous window

后端 未结 13 1217
你的背包
你的背包 2020-12-04 07:12

In Emacs, C-x o takes me to the next window.

What keyboard macro takes me to the previous window in Emacs?

13条回答
  •  清歌不尽
    2020-12-04 07:28

    The fastest method I have found for switching to the previous window is to mash a couple keys together as a "key-chord". The following lets you use your left pinky+ring fingers together to go to previous window:

    (key-chord-define-global "qw" 'prev-window)
    (key-chord-define-global "'y" 'other-window) ; bonus for my colemak, adjust otherwise
    (key-chord-define-global ";'" 'other-window) ; probably normal
    
    

    (This is possible because Emacs key chords are order independent, meaning that qw is the same as wq.)

提交回复
热议问题