From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rene Subject: Re: Org minor mode in mail-mode Date: Mon, 2 May 2011 13:33:39 +0000 (UTC) Message-ID: References: <877hbtc2z5.fsf@fastmail.fm> <87ipvd6do0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGtG5-0008Ha-NV for emacs-orgmode@gnu.org; Mon, 02 May 2011 09:33:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGtG4-0007mo-SP for emacs-orgmode@gnu.org; Mon, 02 May 2011 09:33:53 -0400 Received: from lo.gmane.org ([80.91.229.12]:44724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGtG4-0007mg-Mp for emacs-orgmode@gnu.org; Mon, 02 May 2011 09:33:52 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QGtG1-0000KA-RF for emacs-orgmode@gnu.org; Mon, 02 May 2011 15:33:50 +0200 Received: from inpgse91.inpg.fr ([195.83.75.91]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2011 15:33:49 +0200 Received: from jlr_0 by inpgse91.inpg.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2011 15:33:49 +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 > >> 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