By default emacs wraps long lines. However, when I split the screen using ctrl-x 3, then the two screens will truncate long lines. How do I get emacs to behave the same regardless of whether the screen is split or not. I want it to always wrap long lines, never truncate.
Thanks
Put this in your initialization file:
(setq truncate-partial-width-windows nil)
Some background:
By default, Emacs switches to line truncation when the window width is less than 50 columns (by default). This is because using line continuation with narrow windows makes the text difficult to read. You can control the number of columns before Emacs switches to line truncation with the truncate-partial-width-windows
variable. Setting it to nil
means that Emacs will respect what is in your truncate-lines
variable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With