[Top][All Lists]

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

Re: Using longlines-mode on part of a buffer

From: Cecil Westerhof
Subject: Re: Using longlines-mode on part of a buffer
Date: Fri, 30 Oct 2009 04:43:51 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Joseph Brenner <address@hidden> writes:

>> In the org-document I edit I use tables. I do not want those to be
>> wrapped, because that does look bad. And in longlines-mode it went
>> several times wrong. And when editing the 'normal' text it would be
>> nice to see the unwrapped tables.
>> By the way I prefer longlines-mode, because this wraps at fill-column
>> instead of at the right window edge.
> I'm not familiar with tables in org-documents, but if they're delimeted
> in a way that you could use regular expressions to detect the
> boundaries, hypothetically you could use a multimode (like mmm-mode)
> to automatically enable longlines-mode on the tabular part only.

Tables look like:
|       |         |       |             |
|       |         |       |             |

So to keep it simple it could be done so that lines that start with a
'|', or where the first non-white-space character is a '|' the line is
not wrapped. Any pointers how to create this?

Cecil Westerhof
Senior Software Engineer

reply via email to

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