From: "Sébastien Le Maguer" <slemaguer@coli.uni-saarland.de>
To: Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com>
Cc: "Liste-emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: default file for any .org file
Date: Thu, 19 Oct 2017 09:02:23 +0200 [thread overview]
Message-ID: <8760bb4o3k.fsf@coli.uni-saarland.de> (raw)
In-Reply-To: <CAD-VTcE8CjMBm4i3-Hg-dvFfuZZQVH74KhYqHA+yhiRNGjtEyg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 742 bytes --]
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 "<config-basedir>/third_parties/templates". I let you
adapt but technically it should work with many adaptations.
Kind regards,
Sébastien
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 10:.*.org --]
[-- Type: text/x-org, Size: 492 bytes --]
#+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: <link rel="stylesheet" type="text/css" href="http://www.coli.uni-saarland.de/~slemaguer/default.css" />
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="default.css" />
* COMMENT some extra configuration
[-- Attachment #3: Type: text/plain, Size: 1230 bytes --]
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 .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
================================================================================
Dr. Sébastien 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ücken
Germany
phone : +49-681-302-70030
Mail: slemaguer@coli.uni-saarland.de
website : http://www.coli.uni-saarland.de/~slemaguer/
================================================================================
next prev parent reply other threads:[~2017-10-19 7:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-19 6:55 default file for any .org file Joseph Vidal-Rosset
2017-10-19 7:02 ` Sébastien Le Maguer [this message]
2017-10-19 7:12 ` Joseph Vidal-Rosset
2017-10-19 8:54 ` Fabrice Popineau
2017-10-19 12:08 ` Joseph Vidal-Rosset
2017-10-19 13:38 ` Joseph Vidal-Rosset
2017-10-19 15:15 ` Fabrice Popineau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8760bb4o3k.fsf@coli.uni-saarland.de \
--to=slemaguer@coli.uni-saarland.de \
--cc=emacs-orgmode@gnu.org \
--cc=joseph.vidal.rosset@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).