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

» How to run Source games (CS:S & TF2) in full-screen windowed mode without a border

To run Valve Source games, like Counter-Strike:Source and Team Fortress 2, follow the steps below: Make a note of the screen resolution of the monitor you will be playing the game on. You can find out your screen resolution by selecting the "Start" button --> Control Panel --> Display. In Windows XP, you should see the resolution listed there in a format similar to (1920 x 1080). In Windows 7, you will first need to select "Screen Resolution" in the left sidebar...

» 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!

» How to Change the Default Window Size and Position in Emacs

Depending on your screen resolution, the default size of the Emacs window may be agonizingly small.  Instead of manually adjusting the size each time, you can configure Emacs to open to a different width and height by default.  To do so, add the following to your .emacs file (typically located in your home directory):;; Set Frame width/height(defun arrange-frame (w h x y) "Set the width, height, and x/y position of the current frame" (let ((frame (selected-frame))) ...