emacs nw mode, resize split window

后端 未结 3 1028
独厮守ぢ
独厮守ぢ 2020-12-23 09:56

I\'m interested how can I resize split windows in emacs when I\'m in console mode?

I opened my file with:

emacs myfilename.txt -nw

3条回答
  •  执念已碎
    2020-12-23 10:56

    In addition to shrink-window and enlarge-window, you can also use enlarge-window-horizontally and shrink-window-horizontally.

    Personally I bind these like this:

    (global-set-key (kbd "A-") 'enlarge-window)
    (global-set-key (kbd "A-") 'shrink-window)
    (global-set-key (kbd "A-") 'enlarge-window-horizontally)
    (global-set-key (kbd "A-") 'shrink-window-horizontally)
    

    Then it's very easy to resize -nw window splits using alt-arrow keys. Also you can just hold the keys down to repeat the command, I find this easier than having to think about how many repeats I want (i.e. using C-u 10 etc).

    (more info http://www.emacswiki.org/emacs/WindowResize)

提交回复
热议问题