* visual-fill-column-mode with org
@ 2015-11-08 4:27 Vikas Rawal
2015-11-08 10:29 ` Rasmus
0 siblings, 1 reply; 6+ messages in thread
From: Vikas Rawal @ 2015-11-08 4:27 UTC (permalink / raw)
To: org-mode mailing list
I would like to use visual-fill-column-mode with my org files. However, this has a peculiar problem that org tables also start wrapping at fill-column. Does anyone use visual-fill-column-mode with org and has found a way of telling it to ignore lines starting with a |?
Thanks,
Vikas
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: visual-fill-column-mode with org
2015-11-08 4:27 visual-fill-column-mode with org Vikas Rawal
@ 2015-11-08 10:29 ` Rasmus
2015-11-08 12:34 ` Vikas Rawal
0 siblings, 1 reply; 6+ messages in thread
From: Rasmus @ 2015-11-08 10:29 UTC (permalink / raw)
To: emacs-orgmode
Vikas Rawal <vikaslists@agrarianresearch.org> writes:
> I would like to use visual-fill-column-mode with my org
> files. However, this has a peculiar problem that org tables also start
> wrapping at fill-column. Does anyone use visual-fill-column-mode with
> org and has found a way of telling it to ignore lines starting with a
> |?
Hardly a solution, but you can force columns to only be a certain width
with the <n> declaration, where n is an integer.
Rasmus
--
A clever person solves a problem. A wise person avoids it
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: visual-fill-column-mode with org
2015-11-08 10:29 ` Rasmus
@ 2015-11-08 12:34 ` Vikas Rawal
2015-11-08 17:18 ` Aaron Ecay
0 siblings, 1 reply; 6+ messages in thread
From: Vikas Rawal @ 2015-11-08 12:34 UTC (permalink / raw)
To: Rasmus, org-mode mailing list
>
>> I would like to use visual-fill-column-mode with my org
>> files. However, this has a peculiar problem that org tables also start
>> wrapping at fill-column. Does anyone use visual-fill-column-mode with
>> org and has found a way of telling it to ignore lines starting with a
>> |?
>
> Hardly a solution, but you can force columns to only be a certain width
> with the <n> declaration, where n is an integer.
>
Reducing width of the table to fill-column is hardly usable. It will not work if I zoom in.
Also, I will have to keep doing this for every table. Everything will get more complicated if the table is result of a babel code block.
No..
Vikas
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: visual-fill-column-mode with org
2015-11-08 12:34 ` Vikas Rawal
@ 2015-11-08 17:18 ` Aaron Ecay
2015-11-09 2:22 ` Vikas Rawal
2015-11-09 2:25 ` Vikas Rawal
0 siblings, 2 replies; 6+ messages in thread
From: Aaron Ecay @ 2015-11-08 17:18 UTC (permalink / raw)
To: Vikas Rawal, Rasmus, org-mode mailing list
Hi Vikas,
AFAIK, the visual-fill-mode features are implemented at a very low level
in the display code, in C. It would be nice if it was possible to mark
lines as exempt from wrapping (e.g. by putting a text property on
them). Org could then arrange for tables to have this text property,
and not be wrapped. But this would require changes to emacs’s C code.
(I’m also not sure how it would interact with visual-fill-column-mode,
which is a third-party addon.)
Another option would be to use auto-fill-mode to keep your text
paragraphs within your desired width, without affecting tables.
--
Aaron Ecay
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: visual-fill-column-mode with org
2015-11-08 17:18 ` Aaron Ecay
@ 2015-11-09 2:22 ` Vikas Rawal
2015-11-09 2:25 ` Vikas Rawal
1 sibling, 0 replies; 6+ messages in thread
From: Vikas Rawal @ 2015-11-09 2:22 UTC (permalink / raw)
To: Aaron Ecay; +Cc: org-mode mailing list, Rasmus
[-- Attachment #1: Type: text/plain, Size: 786 bytes --]
> Another option would be to use auto-fill-mode to keep your text
> paragraphs within your desired width, without affecting tables.
>
I do not like auto-fill-mode inserting hard returns at fill-column. This creates problems for version control, as sentences cannot be correctly identified.
I would like each sentence to be on a single line, wrapped only for visual effect, without having hard-returns, so that git can correctly identify changes in each sentence.
That is the reason I am looking at visual-fill-column-mode.
Joost Kremers, author of visual-fill-column-mode, says that this would not be possible since "visual-fill-column-mode does not really do any filling / wrapping”.
So, at the moment, we really do not have any appropriate solution.
Vikas
[-- Attachment #2: Type: text/html, Size: 1518 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: visual-fill-column-mode with org
2015-11-08 17:18 ` Aaron Ecay
2015-11-09 2:22 ` Vikas Rawal
@ 2015-11-09 2:25 ` Vikas Rawal
1 sibling, 0 replies; 6+ messages in thread
From: Vikas Rawal @ 2015-11-09 2:25 UTC (permalink / raw)
To: Aaron Ecay; +Cc: org-mode mailing list, Rasmus
[-- Attachment #1: Type: text/plain, Size: 786 bytes --]
> Another option would be to use auto-fill-mode to keep your text
> paragraphs within your desired width, without affecting tables.
>
I do not like auto-fill-mode inserting hard returns at fill-column. This creates problems for version control, as sentences cannot be correctly identified.
I would like each sentence to be on a single line, wrapped only for visual effect, without having hard-returns, so that git can correctly identify changes in each sentence.
That is the reason I am looking at visual-fill-column-mode.
Joost Kremers, author of visual-fill-column-mode, says that this would not be possible since "visual-fill-column-mode does not really do any filling / wrapping”.
So, at the moment, we really do not have any appropriate solution.
Vikas
[-- Attachment #2: Type: text/html, Size: 1584 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-11-09 2:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-08 4:27 visual-fill-column-mode with org Vikas Rawal
2015-11-08 10:29 ` Rasmus
2015-11-08 12:34 ` Vikas Rawal
2015-11-08 17:18 ` Aaron Ecay
2015-11-09 2:22 ` Vikas Rawal
2015-11-09 2:25 ` Vikas Rawal
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.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).