[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Org minor mode in mail-mode
From: |
Eric Abrahamsen |
Subject: |
Re: [O] Org minor mode in mail-mode |
Date: |
Sat, 10 Sep 2011 13:03:15 +0800 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) |
On Sat, Sep 10 2011, Rene wrote:
> 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)
Thanks for this hint! I had been advising fill-paragraph, this seems
like a more comprehensive solution.