emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* problem with orgstruct mode in message composition
@ 2011-09-22 12:00 Eric S Fraga
  0 siblings, 0 replies; only message in thread
From: Eric S Fraga @ 2011-09-22 12:00 UTC (permalink / raw)
  To: emacs-orgmode


I am having a very specific problem with orgstruct mode (well,
orgstruct++ to be precise) when writing emails.

I have recently moved to using /evil/ for all my text writing in
Emacs.  This is a vi emulator, a very good one that is currently under
intense development.  I know this may sound blasphemous but I *much*
prefer vi's modal approach than emacs's modeless operation, partly
because of RSI problems and the need to avoid key chording.  But emacs
is what I live in...

Be that as it may, evil works very well generally with org.

However, in =Message= buffers, I cannot now access the usual binding for
fill-paragraph, M-q.  I get the following error message:

: orgstruct-error: This key has no function outside structure elements

when in a simple paragraph (not a list item or table).  Evil itself has
no problems with me invoking M-q in any other buffer so I think it is
somehow an interaction between evil and orgstruct++.  Even if I try

 M-: (set-local-key "\M-q" 'fill-paragraph) RET

while in a message buffer, I get the same error!

 M-x fill-paragraph RET

works, however, so it's not a problem with fill-paragraph itself.  In
fact, the bindings in org.el for orgstruct mode indicate that M-q should
invoke this function...  in going through the code, I cannot see
why the error is happening.

Can anybody advise on how to figure out what is going on?

Apologies for the long email.


: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs
: using Org-mode version 7.7 (release_7.7.315.g20e6)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-22 12:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-22 12:00 problem with orgstruct mode in message composition Eric S Fraga

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


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).