From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien?= Le Maguer Subject: Re: default file for any .org file Date: Thu, 19 Oct 2017 09:02:23 +0200 Message-ID: <8760bb4o3k.fsf@coli.uni-saarland.de> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e54qi-0000NE-Lk for emacs-orgmode@gnu.org; Thu, 19 Oct 2017 03:02:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e54qf-0003vM-I9 for emacs-orgmode@gnu.org; Thu, 19 Oct 2017 03:02:36 -0400 Received: from theia.rz.uni-saarland.de ([134.96.7.31]:22624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e54qf-0003qV-8E for emacs-orgmode@gnu.org; Thu, 19 Oct 2017 03:02:33 -0400 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" --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by theia.rz.uni-saarland.de id v9J72QIC030833 Hello, If I understand well, you are looking for a template. On my side,=20 I used yatemplate coupled with auto-insert. Here is the part of=20 configuration I have: (use-package yatemplate :ensure t :after yasnippet :config ;; Define template directory (setq yatemplate-dir (concat config-basedir=20 "/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=20 directory "/third_parties/templates". I let you=20 adapt but technically it should work with many adaptations. Kind regards, S=C3=A9bastien --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename="10:.*.org" #+TITLE: #+AUTHOR: `user-full-name` #+EMAIL: `user-mail-address` #+DATE: `(format-time-string "%e %B %Y")` #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: fr #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t #+SELECT_TAGS: export #+EXCLUDE_TAGS: noexport #+HTML_HEAD: #+HTML_HEAD: * COMMENT some extra configuration --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by theia.rz.uni-saarland.de id v9J72QIC030833 On Thu, Oct 19 2017 (06:55), Joseph Vidal-Rosset=20 wrote: > Hello the list, > > I apologize if the reply to my question has already be given=20 > here of if it > is in the org-mode website. > > I would be happy to get in advance, for any new .org file that=20 > I am going > to create, some properties given by default, for example the=20 > 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=20 > 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 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 --=-=-=--