From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?b?UmVuw6k=?= Subject: Org minor mode in mail-mode Date: Wed, 9 Mar 2011 13:56:00 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=35025 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxJsD-0001Ct-4k for emacs-orgmode@gnu.org; Wed, 09 Mar 2011 08:56:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxJsC-0002S1-2l for emacs-orgmode@gnu.org; Wed, 09 Mar 2011 08:56:20 -0500 Received: from lo.gmane.org ([80.91.229.12]:53860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxJsB-0002Rd-Ry for emacs-orgmode@gnu.org; Wed, 09 Mar 2011 08:56:20 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PxJs9-0002Ul-2G for emacs-orgmode@gnu.org; Wed, 09 Mar 2011 14:56:17 +0100 Received: from static.vdc.vn ([203.162.0.78]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Mar 2011 14:56:16 +0100 Received: from jlr_0 by static.vdc.vn with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Mar 2011 14:56:16 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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. It turns out that the org minor mode rebinds M-q to `orgstruct-hijacker-command-22' : ,---- | M-q runs the command orgstruct-hijacker-command-22, which is an | interactive Lisp function. | | It is bound to M-q. | | (orgstruct-hijacker-command-22 arg) | | In Structure, run `fill-paragraph'. | Outside of structure, run the binding of `\361'. `---- 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? -- René