emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Org minor mode in mail-mode


From: Rene
Subject: Re: [O] Org minor mode in mail-mode
Date: Mon, 2 May 2011 13:33:39 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

> >> Any idea on how to make use of org minor mode in mail-mode and still
> >> be able to fill-paragraph without impacting mail headers?
> >
> > The org minor modes set the local value of fill-paragraph-function to
> > org-fill-paragraph. You can override this by adding a line to your hook
> > function:
> >
> >     (defun turn-on-full-org-mailing ()
> >       (turn-on-orgstruct++)
> >       (turn-on-orgtbl)
> >       (load "org-html-mail")
> >       (setq fill-paragraph-function 'message-fill-paragraph))
> >
> > I'm not sure how this will affect calling fill on lists or tables,
> > however.

As matter of fact, the trouble comes from `turn-on-orgstruct++'.  

Using `turn-on-orgstruct' instead is alright.  When called `fill-paragraph'
operates without interfering with the mail header.

> Another idea would be to change `paragraph-start' and
> `paragraph-separate' values when turning on orgstruct and orgtbl.

Does not seem to work for me.

--
Rene





reply via email to

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