From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: Re: default file for any .org file Date: Thu, 19 Oct 2017 09:12:31 +0200 Message-ID: References: <8760bb4o3k.fsf@coli.uni-saarland.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1ce0ce9ff9ad055be115c4" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e550l-0002hG-S2 for emacs-orgmode@gnu.org; Thu, 19 Oct 2017 03:13:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e550f-0003uP-Ul for emacs-orgmode@gnu.org; Thu, 19 Oct 2017 03:12:59 -0400 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:44669) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e550f-0003uB-I4 for emacs-orgmode@gnu.org; Thu, 19 Oct 2017 03:12:53 -0400 Received: by mail-lf0-x22f.google.com with SMTP id 75so8426597lfx.1 for ; Thu, 19 Oct 2017 00:12:53 -0700 (PDT) In-Reply-To: <8760bb4o3k.fsf@coli.uni-saarland.de> 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: =?UTF-8?Q?S=C3=A9bastien_Le_Maguer?= Cc: "Liste-emacs-orgmode@gnu.org" --94eb2c1ce0ce9ff9ad055be115c4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Many thanks S=C3=A9bastien ! You understood perfectly what I am looking for= . I am going to test your solution and I will be back to inform you. Again, I am thankful to you, for your quick and certainly helpful reply. Best wishes Jo. 2017-10-19 9:02 GMT+02:00 S=C3=A9bastien Le Maguer < slemaguer@coli.uni-saarland.de>: > Hello, > > If I understand well, you are looking for a template. On my side, I used > yatemplate coupled with auto-insert. Here is the part of configuration I > have: > > (use-package yatemplate > :ensure t > :after yasnippet > :config > > ;; Define template directory > (setq yatemplate-dir (concat config-basedir > "/third_parties/templates")) > > ;; Coupling with auto-insert > > (setq auto-insert-alist nil) > (yatemplate-fill-alist) > (add-hook 'find-file-hook 'auto-insert) > ) > > I use a template like the one attached which is place on the directory > "/third_parties/templates". I let you adapt but > technically it should work with many adaptations. > > Kind regards, > S=C3=A9bastien > > > > > > On Thu, Oct 19 2017 (06:55), Joseph Vidal-Rosset < > joseph.vidal.rosset@gmail.com> wrote: > > Hello the list, >> >> I apologize if the reply to my question has already be given here of if = it >> is in the org-mode website. >> >> I would be happy to get in advance, for any new .org file that I am goi= ng >> to create, some properties given by default, for example the following >> links for .bib file: >> >> >> bibliography:/home/joseph/MEGA/org/reforg.bib >> bibliographystyle:smfplain >> >> and others things that I am always constrained to copy from previous .or= g >> files and paste in the new one. >> >> Your suggestions and your help will be very welcome, >> >> Joseph >> > > > -- > Save our in-boxes! http://emailcharter.org > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Dr. S=C3=A9bastien Le Maguer > Postdoctorate researcher > Co-chair of SYNSIG (https://synsig.org/index.php/Main_Page) > > Saarland University > Campus C7.4 - room 2.03 > D-66123 Saarbr=C3=BCcken > Germany > > phone : +49-681-302-70030 > Mail: slemaguer@coli.uni-saarland.de > website : http://www.coli.uni-saarland.de/~slemaguer/ > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > --94eb2c1ce0ce9ff9ad055be115c4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Many thanks S=C3=A9bastien ! You understoo= d perfectly what I am looking for. I am going to test your solution and I w= ill be back to inform you.

Again, I am thankful to you, for your quick and certainly helpful rep= ly.

Best wishes
<= div class=3D"gmail_default" style=3D"font-family:trebuchet ms,sans-serif;fo= nt-size:small">
Jo.

2017-10-19 9:02 GMT+02:00 S=C3= =A9bastien Le Maguer <slemaguer@coli.uni-saarland.de><= /span>:
Hello,

If I understand well, you are looking for a template. On my side, I used ya= template coupled with auto-insert. Here is the part of configuration I have= :

=C2=A0(use-package yatemplate
=C2=A0 =C2=A0:ensure t
=C2=A0 =C2=A0:after yasnippet
=C2=A0 =C2=A0:config

=C2=A0 =C2=A0;; Define template directory
=C2=A0 =C2=A0(setq yatemplate-dir (concat config-basedir=C2=A0 =C2=A0 "= ;/third_parties/templates"))

=C2=A0 =C2=A0;; Coupling with auto-insert

=C2=A0 =C2=A0(setq auto-insert-alist nil)
=C2=A0 =C2=A0(yatemplate-fill-alist)
=C2=A0 =C2=A0(add-hook 'find-file-hook 'auto-insert)
=C2=A0 =C2=A0)

I use a template like the one attached which is place on the directory &quo= t;<config-basedir>/third_parties/templates". I let you adap= t but technically it should work with many adaptations.

Kind regards,
S=C3=A9bastien





On Thu, Oct 19 2017 (06:55), Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com<= /a>> wrote:

Hello the list,

I apologize if the reply to my question has already be given here of if it<= br> is in the org-mode website.

I would be happy to get in advance,=C2=A0 for any new .org file that I am g= oing
to create, some properties given by default, for example the following
links for .bib file:


bibliography:/home/joseph/MEGA/org/reforg.bib
bibliographystyle:smfplain

and others things that I am always constrained to copy from previous .org files and paste in the new one.

Your suggestions and your help will be very welcome,

Joseph


--
Save our in-boxes!
http://emailcharter.org

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D
Dr. S=C3=A9bastien Le Maguer
Postdoctorate researcher
Co-chair of SYNSIG (https://synsig.org/index.php/Main_Pa= ge)

Saarland University
Campus C7.4 - room 2.03
D-66123 Saarbr=C3=BCcken
Germany

phone : +49-681-302-70030
Mail: s= lemaguer@coli.uni-saarland.de
website :=C2=A0 http://www.coli.uni-saarland.de/~sle= maguer/
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D


--94eb2c1ce0ce9ff9ad055be115c4--