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: Sat, 10 Sep 2011 02:12:15 +0000 (UTC)	[thread overview]
Message-ID: <loom.20110910T040811-950@post.gmane.org> (raw)
In-Reply-To: loom.20110309T143507-758@post.gmane.org

René <jlr_0 <at> yahoo.com> writes:

> Here is the the configuration I run
> 
>    (defun turn-on-full-org-mailing ()
>      (turn-on-orgstruct++)
>      (turn-on-orgtbl)
>      (load "org-html-mail"))
> 
>    (add-hook 'mail-mode-hook 'turn-on-full-org-mailing)
> 
> in order make use of Org minor mode (struct, tbl) within mail-mode.
> 
> Unfortunately with this, calling M-q (fill-paragraph) right after the
> header separator ("--text follows this line--") leads to filling the
> header along with the first paragraph of my mail.

I found the right solution.  I just needed to toggle Filladapt minor mode.
This way `auto-fill-mode' and the `fill-paragraph' command are both smarter
about guessing a proper fill-prefix and finding paragraph boundaries when
indented lines and paragraphs are used.

  (require 'filladapt)
  (setq-default filladapt-mode t)

--
Rene

  parent reply	other threads:[~2011-09-10  2:12 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
2011-09-10  2:12 ` Rene [this message]
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.20110910T040811-950@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).