From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Org minor mode in mail-mode Date: Sat, 10 Sep 2011 13:03:15 +0800 Message-ID: <87bout3s6k.fsf@ericabrahamsen.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2Fj1-0005F5-SH for emacs-orgmode@gnu.org; Sat, 10 Sep 2011 01:03:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R2Fj0-0002mK-Ru for emacs-orgmode@gnu.org; Sat, 10 Sep 2011 01:03:31 -0400 Received: from lo.gmane.org ([80.91.229.12]:54519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2Fj0-0002m5-MD for emacs-orgmode@gnu.org; Sat, 10 Sep 2011 01:03:30 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R2Fiy-0002Zg-Oc for emacs-orgmode@gnu.org; Sat, 10 Sep 2011 07:03:28 +0200 Received: from 50-56-99-223.static.cloud-ips.com ([50.56.99.223]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Sep 2011 07:03:28 +0200 Received: from eric by 50-56-99-223.static.cloud-ips.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Sep 2011 07:03:28 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Sat, Sep 10 2011, Rene wrote: > René 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.