all messages for Emacs-related lists mirrored at yhetil.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 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.