all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: harven <harven@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: Line Folding in Emacs
Date: Wed, 15 Oct 2008 21:04:14 +0200	[thread overview]
Message-ID: <m2zll5y91t.fsf@free.fr> (raw)
In-Reply-To: mailman.1124.1224087546.25473.help-gnu-emacs@gnu.org

"Lorenzo Isella" <lorenzo.isella@gmail.com> 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.


  parent reply	other threads:[~2008-10-15 19:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1124.1224087546.25473.help-gnu-emacs@gnu.org>
2008-10-15 18:19 ` Line Folding in Emacs jdd
2008-10-16  0:29   ` Tim X
2008-10-15 19:04 ` harven [this message]
2008-10-15 16:19 Lorenzo Isella
2008-10-15 19:10 ` Nikolaj Schumacher
2008-10-15 19:34   ` Lorenzo Isella

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2zll5y91t.fsf@free.fr \
    --to=harven@free.fr \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.