How to Set Emacs to Word Wrap on Vertical Split

(1 vote, average 5.00 out of 5)

By default, using C-x 3 in emacs splits the window vertically into two buffers.  This is very convenient, but for some reason it disables word wrap (even when word wrap is set in the options).  To enable word wrap on a vertical split, add the following to your .emacs file (typically located in your home directory):

;; Word wrap on vertical split
(setq truncate-partial-width-windows nil)

Alternatively you can enter the same command during your current session if you don't want this to be the default behavior.  

Partner Links:
Last Updated on Monday, 13 February 2012 13:25  
Related Articles

» Correcting Internet Explorer 8's Favorites Bar Icon Width

If you're using Internet Explorer 8 and find that folders and web links dragged to your favorites bar have become icons or short titles only and you want full titles, there is a simple fix!Right click on the yellow folder icon.Goto Customize Title Widths.Select Long Titles.Now your favorites bar folders and web sites will resize to their full width.

» How to Change Screen Resolution on Windows XP

Click Start -> Control Panel.Once in Control Panel, find the icon that is labeled Display and open it.Select the Settings tab. Once in the settings tab, look for the screen resolution setting.After selecting the correct setting, click apply.If your monitor does not support the resolution and the screen is unreadable, wait 30 seconds and Windows will automatically revert the settings for you. If the settings are correct, select OK.

» How to Quickly Move Windows to the Side of the Screen Using a Hotkey in Windows

There are many cases where a focused window may be in your way, or maybe you just want to put the window on one of the sides of the screen. This can be done very easily by focusing the window you would like to move, holding down the windows key, and using the arrows to move to each side of the screen. This hotkey also works with multiple displays!