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
now when I split my window with:
C-x 2
or
C-x 3
how can I resize new windows?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try M-x enlarge-window and M-x shrink-window.
You can specify the number of lines by which to enlarge or shrink with the prefix argument, e.g. to enlarge a window by six lines, type:
C-u 6 M-x enlarge-window
By default
enlarge-windowis bound to C-x ^.shrink-windowis not bound to any shortcut by default, but you can use a negative prefix argument with C-x ^ to get shrinkage.So you could get the same effect as above by typing:
C-u 6 C-x ^ (enlarge)
C-u - 6 C-x ^ (shrink)
A special case is the horizontal split where you have additional keyboard shortcuts available for embiggening or shrinking the windows:
C-x } is bound to
enlarge-window-horizontallyC-x { is bound to
shrink-window-horizontallyAgain, you can use prefix arguments to specify the amount (i.e., number of columns) you want to enlarge/shrink the windows with C-u