From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: Re: Fwd: how do you compose mails in Gnus with org-mode Date: Thu, 01 Mar 2018 19:04:00 +0100 Message-ID: <87h8pzu0z3.fsf@gmail.com> References: <87inafvrwi.fsf@gmail.com> <87inafanug.fsf@gmail.com> <87vaef97ze.fsf@gmail.com> <87k1uvq1af.fsf@gmail.com> <87bmg7vmor.fsf@gmail.com> <878tbbohow.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erSYo-0007Yc-F9 for emacs-orgmode@gnu.org; Thu, 01 Mar 2018 13:04:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erSYn-0003As-Ks for emacs-orgmode@gnu.org; Thu, 01 Mar 2018 13:04:06 -0500 Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]:41366) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erSYn-00039a-DF for emacs-orgmode@gnu.org; Thu, 01 Mar 2018 13:04:05 -0500 Received: by mail-wr0-x234.google.com with SMTP id f14so7510118wre.8 for ; Thu, 01 Mar 2018 10:04:05 -0800 (PST) In-Reply-To: <878tbbohow.fsf@gmail.com> (Eric S. Fraga's message of "Thu, 01 Mar 2018 16:59:27 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Liste-emacs-orgmode@gnu.org" , Eric Fraga Le jeu. 01 mars 2018 =C3=A0 04:59:27 , Eric S Fraga = a envoy=C3=A9 ce message: > On Thursday, 1 Mar 2018 at 16:29, Joseph Vidal-Rosset wrote: >> The first option would be the best for me: because my use of org-mode is >> mainly for my work and I am always pasting this link in new org file. It >> is boring. If you could me help to define such a hook, I will be again >> indebted to you. But please do it only if it is not time consuming for >> you. > > I use autoinsert to automatically insert contents into new files. Look > at autoinsert.el in your emacs distribution. I do the following: > > (require 'autoinsert) > (push '(org-mode . "/SOMEPATH/orgskeleton.org") auto-insert-alist) > (add-hook 'find-file-hook 'auto-insert) > > where orgskeleton.org has the initial contents I want inserted into any > new org file. These include settings and some default headlines in my > case. Many thanks Eric, it is very kind of you to help me so much. 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. Regards, and thanks again ! --=20 Joseph Vidal-Rosset