emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org minor mode in mail-mode
@ 2011-03-09 13:56 René
  2011-03-20 13:53 ` Matt Lundin
  2011-09-10  2:12 ` Rene
  0 siblings, 2 replies; 7+ messages in thread
From: René @ 2011-03-09 13:56 UTC (permalink / raw)
  To: emacs-orgmode

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é

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-09-14 11:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-09 13:56 Org minor mode in mail-mode René
2011-03-20 13:53 ` Matt Lundin
2011-03-20 14:59   ` Nicolas
2011-05-02 13:33     ` Rene
2011-09-10  2:12 ` Rene
2011-09-10  5:03   ` Eric Abrahamsen
2011-09-14 11:07     ` Rene

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).