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 14:08:24 +0200 Message-ID: References: <8760bb4o3k.fsf@coli.uni-saarland.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1a6320d11c31055be53710" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e59d3-0001JG-89 for emacs-orgmode@gnu.org; Thu, 19 Oct 2017 08:08:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e59d1-0005ej-LB for emacs-orgmode@gnu.org; Thu, 19 Oct 2017 08:08:49 -0400 Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]:56063) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e59d1-0005dj-7z for emacs-orgmode@gnu.org; Thu, 19 Oct 2017 08:08:47 -0400 Received: by mail-lf0-x22a.google.com with SMTP id p184so9324884lfe.12 for ; Thu, 19 Oct 2017 05:08:47 -0700 (PDT) In-Reply-To: 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: fabrice.popineau@centralesupelec.fr Cc: "Liste-emacs-orgmode@gnu.org" , =?UTF-8?Q?S=C3=A9bastien_Le_Maguer?= --94eb2c1a6320d11c31055be53710 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Many thanks Fabrice for this link. I am going to try theses two options. Best wishes, Jo. 2017-10-19 10:54 GMT+02:00 Fabrice Popineau : > More flexible imho : use a #+setupfile: directive. > > #+setupfile: my-setup.org > > http://orgmode.org/manual/In_002dbuffer-settings.html > > Fabrice > > 2017-10-19 9:12 GMT+02:00 Joseph Vidal-Rosset < > joseph.vidal.rosset@gmail.com>: > >> 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 use= d >>> 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 i= f >>>> it >>>> is in the org-mode website. >>>> >>>> I would be happy to get in advance, for any new .org file that I am >>>> going >>>> 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_Page) >>> >>> Saarland University >>> Campus C7.4 - room 2.03 >>> D-66123 Saarbr=C3=BCcken >>> Germany >>> >>> phone : +49-681-302-70030 <+49%20681%2030270030> >>> 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 >>> >>> >> > > > -- > Fabrice Popineau > ----------------------------- > SUPELEC > D=C3=A9partement Informatique > 3, rue Joliot Curie > > 91192 Gif/Yvette Cedex > Tel direct : +33 (0) 169851950 <01%2069%2085%2019%2050> > Standard : +33 (0) 169851212 <01%2069%2085%2012%2012> > ------------------------------ > > --94eb2c1a6320d11c31055be53710 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Many thanks Fabrice for this link. I am go= ing to try theses two options.

Best wishes,

Jo.

2017= -10-19 10:54 GMT+02:00 Fabrice Popineau <fabrice.popineau@supele= c.fr>:
Mor= e flexible imho : use a #+setupfile: directive.

#+setupf= ile: my-setup.org


Fabrice

2017-10-= 19 9:12 GMT+02:00 Joseph Vidal-Rosset <joseph.vidal.rosset@gma= il.com>:
Many thanks S=C3=A9bastien ! You understood perfectly w= hat I am looking for. I am going to test your solution and I will be back t= o inform you.

Again, I = am thankful to you, for your quick and certainly helpful reply.
<= div class=3D"gmail_default" style=3D"font-family:trebuchet ms,sans-serif;fo= nt-size:small">
Best wishes
<= br>
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 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





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





--
Fabrice Popineau
-----------------------------
SUPELEC<= /div>
D=C3=A9partement Informatique
91192 Gif/Yvette Cedex
Tel direct : <= a href=3D"tel:01%2069%2085%2019%2050" value=3D"+33169851950" target=3D"_bla= nk">+33 (0) 169851950
Standard : +33 (0) 169851212
------------------------------


--94eb2c1a6320d11c31055be53710--