help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: outorg-edit-as-org and mu4e


From: Thorsten Jolitz
Subject: Re: outorg-edit-as-org and mu4e
Date: Tue, 22 Oct 2013 18:41:58 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>
>> I think I found the problem, looking at the code for
>> outorg-edit-as-org. It seems that you explicitly check for
>> message-mode, but I write my email using mu4e, and then the major mode
>> is mu4e-compose-mode. Is there a way to apply
>> 'outorg-prepare-message-mode-buffer-for-editing' for other modes than
>> message mode? (Editing the code seems to be the only way I see.)
>
> Sorry to reply to myself, but how about replacing
>
> #+begin_src emacs-lisp
>   (and (eq major-mode 'message-mode)
>        (outorg-prepare-message-mode-buffer-for-editing))
> #+end_src
>
> on lines 719-720 of outorg.el by
>
> #+begin_src emacs-lisp
>   (and (derived-mode-p 'message-mode)
>        (outorg-prepare-message-mode-buffer-for-editing))
> #+end_src
>
> I think it would work with mu4e-compose-mode.

Ok, then its not a bug but just a (slightly) different use case. 

I don't use mu4e, actually I never heard of it (is it good?). Could you
test these changes and let me know if it works for you? Then I'm happy
to apply them to outorg, no matter if this version:

#+begin_src emacs-lisp
  (and (derived-mode-p 'message-mode)
       (outorg-prepare-message-mode-buffer-for-editing))
#+end_src

or something like this (untested):

#+begin_src emacs-lisp
  (and
    (or (eq major-mode 'message-mode)
        (eq major-mode 'mu4e-compose-mode))
        (outorg-prepare-message-mode-buffer-for-editing))
#+end_src

-- 
cheers,
Thorsten




reply via email to

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