* default file for any .org file
@ 2017-10-19 6:55 Joseph Vidal-Rosset
2017-10-19 7:02 ` Sébastien Le Maguer
0 siblings, 1 reply; 7+ messages in thread
From: Joseph Vidal-Rosset @ 2017-10-19 6:55 UTC (permalink / raw)
To: Liste-emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 532 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1807 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: default file for any .org file
2017-10-19 6:55 default file for any .org file Joseph Vidal-Rosset
@ 2017-10-19 7:02 ` Sébastien Le Maguer
2017-10-19 7:12 ` Joseph Vidal-Rosset
0 siblings, 1 reply; 7+ messages in thread
From: Sébastien Le Maguer @ 2017-10-19 7:02 UTC (permalink / raw)
To: Joseph Vidal-Rosset; +Cc: Liste-emacs-orgmode@gnu.org
[-- 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/
================================================================================
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: default file for any .org file
2017-10-19 7:02 ` Sébastien Le Maguer
@ 2017-10-19 7:12 ` Joseph Vidal-Rosset
2017-10-19 8:54 ` Fabrice Popineau
0 siblings, 1 reply; 7+ messages in thread
From: Joseph Vidal-Rosset @ 2017-10-19 7:12 UTC (permalink / raw)
To: Sébastien Le Maguer; +Cc: Liste-emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 2394 bytes --]
Many thanks Sébastien ! 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ébastien 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
> "<config-basedir>/third_parties/templates". I let you adapt but
> technically it should work with many adaptations.
>
> Kind regards,
> Sébastien
>
>
>
>
>
> 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/
> ============================================================
> ====================
>
>
[-- Attachment #2: Type: text/html, Size: 4081 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: default file for any .org file
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
0 siblings, 2 replies; 7+ messages in thread
From: Fabrice Popineau @ 2017-10-19 8:54 UTC (permalink / raw)
To: Joseph Vidal-Rosset; +Cc: Liste-emacs-orgmode@gnu.org, Sébastien Le Maguer
[-- Attachment #1: Type: text/plain, Size: 3046 bytes --]
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ébastien ! 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ébastien 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
>> "<config-basedir>/third_parties/templates". I let you adapt but
>> technically it should work with many adaptations.
>>
>> Kind regards,
>> Sébastien
>>
>>
>>
>>
>>
>> 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 <+49%20681%2030270030>
>> Mail: slemaguer@coli.uni-saarland.de
>> website : http://www.coli.uni-saarland.de/~slemaguer/
>> ============================================================
>> ====================
>>
>>
>
--
Fabrice Popineau
-----------------------------
SUPELEC
Département 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>
------------------------------
[-- Attachment #2: Type: text/html, Size: 5671 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: default file for any .org file
2017-10-19 8:54 ` Fabrice Popineau
@ 2017-10-19 12:08 ` Joseph Vidal-Rosset
2017-10-19 13:38 ` Joseph Vidal-Rosset
1 sibling, 0 replies; 7+ messages in thread
From: Joseph Vidal-Rosset @ 2017-10-19 12:08 UTC (permalink / raw)
To: fabrice.popineau; +Cc: Liste-emacs-orgmode@gnu.org, Sébastien Le Maguer
[-- Attachment #1: Type: text/plain, Size: 3440 bytes --]
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 <fabrice.popineau@supelec.fr>:
> 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ébastien ! 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ébastien 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
>>> "<config-basedir>/third_parties/templates". I let you adapt but
>>> technically it should work with many adaptations.
>>>
>>> Kind regards,
>>> Sébastien
>>>
>>>
>>>
>>>
>>>
>>> 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 <+49%20681%2030270030>
>>> Mail: slemaguer@coli.uni-saarland.de
>>> website : http://www.coli.uni-saarland.de/~slemaguer/
>>> ============================================================
>>> ====================
>>>
>>>
>>
>
>
> --
> Fabrice Popineau
> -----------------------------
> SUPELEC
> Département Informatique
> 3, rue Joliot Curie
> <https://maps.google.com/?q=3,+rue+Joliot+Curie&entry=gmail&source=g>
> 91192 Gif/Yvette Cedex
> Tel direct : +33 (0) 169851950 <01%2069%2085%2019%2050>
> Standard : +33 (0) 169851212 <01%2069%2085%2012%2012>
> ------------------------------
>
>
[-- Attachment #2: Type: text/html, Size: 6885 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: default file for any .org file
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
1 sibling, 1 reply; 7+ messages in thread
From: Joseph Vidal-Rosset @ 2017-10-19 13:38 UTC (permalink / raw)
To: Fabrice Popineau; +Cc: Liste-emacs-orgmode@gnu.org, Sébastien Le Maguer
[-- Attachment #1: Type: text/plain, Size: 4193 bytes --]
Hello again,
I am sorry to say that there is certainly something that I do not
understand. I have defined a firstemplate.org file in
"/home/joseph/MEGA/git/scimax/user/" and I have adapted your code in my
user.el, Sébastien:
(use-package yatemplate
:ensure t
:after yasnippet
:config
;; Define template directory
(setq yatemplate-dir (concat config-basedir
"/home/joseph/MEGA/git/scimax/user/firstemplate.org"))
;; Coupling with auto-insert
(setq auto-insert-alist nil)
(yatemplate-fill-alist)
(add-hook 'find-file-hook 'auto-insert)
)
But it does not work for me. If I create a new .org file, I do not see the
wanted lines that refer to my orgref.bib file...
Same thing with Fabrice's solution. "Chou blanc ... " :(
I need at least a more precise example.
Best wishes
Jo.
2017-10-19 10:54 GMT+02:00 Fabrice Popineau <fabrice.popineau@supelec.fr>:
> 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ébastien ! 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ébastien 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
>>> "<config-basedir>/third_parties/templates". I let you adapt but
>>> technically it should work with many adaptations.
>>>
>>> Kind regards,
>>> Sébastien
>>>
>>>
>>>
>>>
>>>
>>> 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 <+49%20681%2030270030>
>>> Mail: slemaguer@coli.uni-saarland.de
>>> website : http://www.coli.uni-saarland.de/~slemaguer/
>>> ============================================================
>>> ====================
>>>
>>>
>>
>
>
> --
> Fabrice Popineau
> -----------------------------
> SUPELEC
> Département Informatique
> 3, rue Joliot Curie
> <https://maps.google.com/?q=3,+rue+Joliot+Curie&entry=gmail&source=g>
> 91192 Gif/Yvette Cedex
> Tel direct : +33 (0) 169851950 <01%2069%2085%2019%2050>
> Standard : +33 (0) 169851212 <01%2069%2085%2012%2012>
> ------------------------------
>
>
[-- Attachment #2: Type: text/html, Size: 8750 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: default file for any .org file
2017-10-19 13:38 ` Joseph Vidal-Rosset
@ 2017-10-19 15:15 ` Fabrice Popineau
0 siblings, 0 replies; 7+ messages in thread
From: Fabrice Popineau @ 2017-10-19 15:15 UTC (permalink / raw)
To: Joseph Vidal-Rosset; +Cc: Liste-emacs-orgmode@gnu.org, Sébastien Le Maguer
[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]
2017-10-19 15:38 GMT+02:00 Joseph Vidal-Rosset <
joseph.vidal.rosset@gmail.com>:
> Hello again,
>
> I am sorry to say that there is certainly something that I do not
> understand. I have defined a firstemplate.org file in
> "/home/joseph/MEGA/git/scimax/user/" and I have adapted your code in my
> user.el, Sébastien:
>
> (use-package yatemplate
> :ensure t
> :after yasnippet
> :config
>
> ;; Define template directory
> (setq yatemplate-dir (concat config-basedir
> "/home/joseph/MEGA/git/scimax/user/firstemplate.org"))
>
> ;; Coupling with auto-insert
>
> (setq auto-insert-alist nil)
> (yatemplate-fill-alist)
> (add-hook 'find-file-hook 'auto-insert)
> )
>
> But it does not work for me. If I create a new .org file, I do not see the
> wanted lines that refer to my orgref.bib file...
>
> Same thing with Fabrice's solution. "Chou blanc ... " :(
>
>
If you add your setup by
#+setupfile: my-setup.org
you need to refresh it by C-c C-c on this line.
You won't see the content of my-setup.org, but it will be active in your
current orf buffer.
Fabrice
[-- Attachment #2: Type: text/html, Size: 2525 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-10-19 15:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-19 6:55 default file for any .org file Joseph Vidal-Rosset
2017-10-19 7:02 ` Sébastien Le Maguer
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
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).