emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Indentation and visual-line-mode


From: Lennart Borgman
Subject: Re: Indentation and visual-line-mode
Date: Fri, 25 Nov 2011 15:58:52 +0100

On Fri, Nov 25, 2011 at 15:52, Stefan Monnier <address@hidden> wrote:
>>>> (assuming you never want to change the indentation during editing).
>>> A while ago there was a thread about implementing a minor mode to get
>>> visual indentation with wrap-prefix using fill-context-prefix, in
>>> which I proposed an adaptation of the above; see
>>> <http://permalink.gmane.org/gmane.emacs.devel/125268>.  AFAIK there
>>> was no followup to my proposal.
>
> Indeed I didn't find the time to look at it and it ended up on my long
> list of "things to do when hell finally freezes over".
>
>> I've just tried that code, and it's exactly what I've been looking for.
>
> I've just looked at it and it looks really nice and simple.
> It can even be simplified further (see below).
>
> Sadly, this can't be generalized to programming languages, in the sense
> that you can't use foo-indent-calculate to set a wrap-prefix property
> since the wrap-prefix to use depends on the place where the line
> is wrapped.

If it is for text modes then I suggest using something like what I
told about above since you also would want a more narrow text for
readability. (Please see the picture I sent.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]