emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rene <jlr_0@yahoo.com>
To: emacs-orgmode@gnu.org
Subject: Re: Org minor mode in mail-mode
Date: Mon, 2 May 2011 13:33:39 +0000 (UTC)	[thread overview]
Message-ID: <loom.20110502T152439-640@post.gmane.org> (raw)
In-Reply-To: 87ipvd6do0.fsf@gmail.com

> >> 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	other threads:[~2011-05-02 13:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-09 13:56 Org minor mode in mail-mode René
2011-03-20 13:53 ` Matt Lundin
2011-03-20 14:59   ` Nicolas
2011-05-02 13:33     ` Rene [this message]
2011-09-10  2:12 ` Rene
2011-09-10  5:03   ` Eric Abrahamsen
2011-09-14 11:07     ` Rene

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20110502T152439-640@post.gmane.org \
    --to=jlr_0@yahoo.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).