From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: default file for any .org file Date: Thu, 19 Oct 2017 10:54:37 +0200 Message-ID: References: <8760bb4o3k.fsf@coli.uni-saarland.de> Reply-To: fabrice.popineau@centralesupelec.fr Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c097a16bc959c055be28218" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e56bl-0001Sp-TS for emacs-orgmode@gnu.org; Thu, 19 Oct 2017 04:55:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e56bh-0004yq-UF for emacs-orgmode@gnu.org; Thu, 19 Oct 2017 04:55:17 -0400 Received: from smtp2.supelec.fr ([160.228.120.31]:41272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e56bh-0004ca-JV for emacs-orgmode@gnu.org; Thu, 19 Oct 2017 04:55:13 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp2.supelec.fr (Postfix) with ESMTP id 34C0280569 for ; Thu, 19 Oct 2017 10:55:00 +0200 (CEST) Received: from smtp2.supelec.fr ([127.0.0.1]) by localhost (smtp2.supelec.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wBjmpo8UHN9H for ; Thu, 19 Oct 2017 10:54:59 +0200 (CEST) Received: from mail-qk0-f170.google.com (mail-qk0-f170.google.com [209.85.220.170]) by smtp2.supelec.fr (Postfix) with ESMTPSA id A67278056B for ; Thu, 19 Oct 2017 10:54:58 +0200 (CEST) Received: by mail-qk0-f170.google.com with SMTP id w134so9483369qkb.0 for ; Thu, 19 Oct 2017 01:54:58 -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: Joseph Vidal-Rosset Cc: "Liste-emacs-orgmode@gnu.org" , =?UTF-8?Q?S=C3=A9bastien_Le_Maguer?= --94eb2c097a16bc959c055be28218 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 : > Many thanks S=C3=A9bastien ! You understood perfectly what I am looking f= or. 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 >>> 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 .o= rg >>> 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 >> >> > --=20 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> ------------------------------ --94eb2c097a16bc959c055be28218 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
More flexible imho : use a #+setupfile: directive.
#+setupfile: = my-setup.org


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 i= nform 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 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
D=C3=A9partement Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950<= /div>
-----------------= -------------

--94eb2c097a16bc959c055be28218--