From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: harven Newsgroups: gmane.emacs.help Subject: Re: Line Folding in Emacs Date: Wed, 15 Oct 2008 21:04:14 +0200 Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224099651 12345 80.91.229.12 (15 Oct 2008 19:40:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2008 19:40:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 15 21:41:51 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KqCFe-0005U3-Fa for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Oct 2008 21:41:46 +0200 Original-Received: from localhost ([127.0.0.1]:38064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqCEZ-0002qR-OM for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Oct 2008 15:40:39 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp13-2.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Cancel-Lock: sha1:Wbs+3vsAvMTk6+SaDwoHs+YASd4= Original-Lines: 28 Original-NNTP-Posting-Date: 15 Oct 2008 21:04:14 MEST Original-NNTP-Posting-Host: 82.240.200.149 Original-X-Trace: 1224097454 news-2.free.fr 10226 82.240.200.149:49176 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:163473 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58818 Archived-At: "Lorenzo Isella" writes: > Dear All, > I have looked here and there but not found exactly what I was after. > Say you are reading some code and then want to open a new vertical > windows with C-x 3. > How can you have emacs fold the lines in such a way that you still can > read you code entirely in the new window, without scrolling > horizontally? > Cheers > > Lorenzo >From the manual: " When a window is less than the full width, text lines too long to fit are frequent. Continuing all those lines might be confusing, so if the variable `truncate-partial-width-windows' is non-`nil', that forces truncation in all windows less than the full width of the screen, independent of the buffer being displayed and its value for `truncate-lines'. *Note Line Truncation::. " So try to put the following in your .emacs: (setq truncate-partial-width-windows nil) You can also have a look at the variable truncate-lines if you want to set this on a per-buffer basis.