[Orgmode] Smart(er) word wrapping with org-mode and visual-line-mode

2009-12-03 Thread Matthew Dempsky
While playing around with the different options for handling word
wrapping in org-mode, I decided to instead hack an extension that
improves visual-line-mode's word wrapping when used in conjunction
with org-mode.  In particular, the mrd-org-smartwrap minor mode
automatically sets the `wrap-prefix' property on all section headlines
and plain list entries so that visual-line-mode's native word wrapping
looks identical to what careful and continual usage of TAB and M-q
should produce, without any of the quirks of using auto-fill-mode or
refill-mode.

Just thought I'd share in case anyone else found it useful / interesting.

Caveats: It's incompatible with org-indent-mode, doesn't do anything
to support org-adapt-indentation, and results in tables being word
wrapped.  I've also noticed linum-mode causes it to go crazy if the
top visible line is the continuation of a soft wrapped line.


mrd-org-smartwrap.el
Description: Binary data
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Smart(er) word wrapping with org-mode and visual-line-mode

2009-12-03 Thread Matthew Dempsky
On Thu, Dec 3, 2009 at 6:23 AM, Carsten Dominik
 wrote:
> this is nice, I might want to merge this into Org-mode in one way or another
> - if you agree.  Do you?  Would you sign the papers?

Sure, it's GPLv3-derived, so do whatever you'd like with it. :)

And yeah, I'm willing to sign the FSF paperwork.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode