unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Indentation and visual-line-mode
@ 2011-11-25  9:34 Tassilo Horn
  2011-11-25 11:52 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Tassilo Horn @ 2011-11-25  9:34 UTC (permalink / raw)
  To: emacs-devel

Hi all,

in some document that's written by me and others, the convention is that
every paragraph is written on one line, probably because the others
don't use emacs and their editors have no equivalent of `M-q'.

Anyway, when editing such files, I enable visual-line-mode to make my
editing more convenient.  However, there's one thing I'm missing.  If a
line is visually wrapped around, it always starts at column zero, even
if the logical line is indented.

For example, if the window was 25 columns wide, I get

--8<---------------cut here---------------start------------->8---
  \begin{itemize}
  \item Foo bar baz foo
bar baz foo
  \item Bar baz foo bar
baz
  \end{itemize}
--8<---------------cut here---------------end--------------->8---

which looks pretty weird.  Is there some option that allows the wrapped
lines to be visually indented relative to the current logical line?

--8<---------------cut here---------------start------------->8---
  \begin{itemize}
  \item Foo bar baz foo
  bar baz foo
  \item Bar baz foo bar
  baz
  \end{itemize}
--8<---------------cut here---------------end--------------->8---

Checking the docs, I think something like that can be achieved using the
variables or text properties `line-prefix' and `wrap-prefix', but what
is a stretch-glyph?

Bye,
Tassilo
-- 
(What the world needs (I think) is not
      (a Lisp (with fewer parentheses))
      but (an English (with more.)))
Brian Hayes, http://tinyurl.com/3y9l2kf



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-11-25 15:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-25  9:34 Indentation and visual-line-mode Tassilo Horn
2011-11-25 11:52 ` Eli Zaretskii
2011-11-25 12:38   ` Stephen Berman
2011-11-25 13:54     ` Tassilo Horn
2011-11-25 14:52       ` Stefan Monnier
2011-11-25 14:58         ` Lennart Borgman
2011-11-25 15:15         ` Tassilo Horn
2011-11-25 13:49 ` Lennart Borgman
2011-11-25 14:36   ` Tassilo Horn
2011-11-25 14:47     ` Lennart Borgman
2011-11-25 15:37       ` Juanma Barranquero
2011-11-25 15:46         ` Lennart Borgman
2011-11-25 14:00 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).