From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rene Subject: Re: Org minor mode in mail-mode Date: Sat, 10 Sep 2011 02:12:15 +0000 (UTC) Message-ID: 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]:51108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2D3b-0002HL-Au for emacs-orgmode@gnu.org; Fri, 09 Sep 2011 22:12:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R2D3a-0002Xy-9q for emacs-orgmode@gnu.org; Fri, 09 Sep 2011 22:12:35 -0400 Received: from lo.gmane.org ([80.91.229.12]:35507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2D3a-0002Xs-1V for emacs-orgmode@gnu.org; Fri, 09 Sep 2011 22:12:34 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R2D3Y-0005rQ-DK for emacs-orgmode@gnu.org; Sat, 10 Sep 2011 04:12:32 +0200 Received: from vaf26-3-88-162-208-155.fbx.proxad.net ([88.162.208.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Sep 2011 04:12:29 +0200 Received: from jlr_0 by vaf26-3-88-162-208-155.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Sep 2011 04:12:29 +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 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) -- Rene