From: Eric S Fraga <esflists@gmail.com>
To: Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com>
Cc: "Liste-emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Fwd: how do you compose mails in Gnus with org-mode
Date: Fri, 02 Mar 2018 07:25:00 +0000 [thread overview]
Message-ID: <87tvtzaqib.fsf@ucl.ac.uk> (raw)
In-Reply-To: 87h8pzu0z3.fsf@gmail.com
[-- Attachment #1: Type: text/plain, Size: 2067 bytes --]
On Thursday, 1 Mar 2018 at 19:04, Joseph Vidal-Rosset wrote:
[...]
> autoinsert works well for new org files, it is a first good point for
> me. I receive this message: Perform org-mode auto-insertion? (y or n)
> and after replying "y" I get my org file with the bibliography link.
>
> Unfortunately, it does not work in Gnus with the command M-x org-mode on
> a reply to a message, and I do not understand why.
Because switching to org mode is not creating a new file but simply
changing the mode of an existing buffer. Autoinsert is only for new
files. What you could do is customise gnus to create your email buffer
with the right content instead.
If there is a predictable circumstance when you want to effect this
auto-insertion in emails, I would suggest you look at gnus posting
styles (section 5.6 of the gnus info manual). You can specify a default
"body" for an email when created (along with other things, typically a
signature). For instance, the signature on this email is automatically
inserted by gnus when I respond to an email in the org mailing list.
#+begin_src emacs-lisp
(setq gnus-posting-styles
'((".*:lists.org"
(signature esf/orgmode-signature-version))))
#+end_src
(much abridged) where lists.org is the group in which org emails are
split to (by gnus) and
#+begin_src emacs-lisp
(defun esf/orgmode-signature-version ()
(format "Eric S Fraga via Emacs %s, Org %s\n"
emacs-version (org-git-version)))
#+end_src
You could also consider defining entries in *gnus-alias-identity-alist*
which you can then invoke manually on specific emails using
gnus-alias-use-identity, which I have bound to C-c i. This can insert
default text in the body as well as do other things, much like posting
styles.
gnus is much like org in that if there's something you want to do,
there's more than likely a solution already! Well, actually, I guess
this is really a feature of emacs...
--
Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-191-g90607d
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
next prev parent reply other threads:[~2018-03-02 7:25 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-01 13:37 how do you compose mails in Gnus with org-mode Joseph Vidal-Rosset
2018-03-01 14:10 ` Eric S Fraga
[not found] ` <87vaef97ze.fsf@gmail.com>
2018-03-01 14:40 ` Fwd: " Joseph Vidal-Rosset
2018-03-01 15:10 ` Eric S Fraga
2018-03-01 15:29 ` Joseph Vidal-Rosset
2018-03-01 16:59 ` Eric S Fraga
2018-03-01 18:04 ` Joseph Vidal-Rosset
2018-03-01 18:17 ` Brian Shine
2018-03-01 18:46 ` Joseph Vidal-Rosset
2018-03-01 19:01 ` Brian Shine
2018-03-02 7:27 ` Roland Everaert
2018-03-02 7:25 ` Eric S Fraga [this message]
2018-03-03 11:57 ` Thorsten Jolitz
2018-03-06 9:58 ` [Error] (was: how do you compose mails in Gnus with org-mode) Uwe Brauer
2018-03-06 18:12 ` [Error] Thorsten Jolitz
2018-03-06 10:12 ` how do you compose mails in Gnus with org-mode Uwe Brauer
2018-03-06 18:24 ` Thorsten Jolitz
2018-03-06 18:38 ` Thorsten Jolitz
2018-03-06 19:02 ` Uwe Brauer
2018-03-06 19:01 ` Uwe Brauer
2018-03-06 19:36 ` Thorsten Jolitz
2018-03-07 9:57 ` Uwe Brauer
2018-03-07 17:46 ` Thorsten Jolitz
2018-03-08 8:50 ` Uwe Brauer
2018-03-08 16:58 ` Thorsten Jolitz
2018-03-09 18:44 ` Uwe Brauer
2018-03-09 22:58 ` Thorsten Jolitz
2018-03-09 21:49 ` [SOLVED] (was: how do you compose mails in Gnus with org-mode) Uwe Brauer
2018-03-09 22:59 ` [SOLVED] Thorsten Jolitz
2018-03-10 8:37 ` [a outline regexp problem] (was: [SOLVED]) Uwe Brauer
2018-03-07 21:10 ` how do you compose mails in Gnus with org-mode Tim Cross
2018-03-08 8:57 ` Uwe Brauer
2018-03-08 11:48 ` Tim Cross
2018-03-08 14:16 ` Uwe Brauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tvtzaqib.fsf@ucl.ac.uk \
--to=esflists@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=joseph.vidal.rosset@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).