emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Org minor mode in mail-mode


From: René
Subject: [O] Org minor mode in mail-mode
Date: Wed, 9 Mar 2011 13:56:00 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.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é





reply via email to

[Prev in Thread] Current Thread [Next in Thread]