emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@centralesupelec.fr>
To: Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com>
Cc: "Liste-emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
	"Sébastien Le Maguer" <slemaguer@coli.uni-saarland.de>
Subject: Re: default file for any .org file
Date: Thu, 19 Oct 2017 17:15:23 +0200	[thread overview]
Message-ID: <CAFgFV9M42CZeh=hxF5GSf0K_xV9X0wko9iuf1iHNGnR_e1whLw@mail.gmail.com> (raw)
In-Reply-To: <CAD-VTcHfuDu8E_U_SzQdTznKJsNOt9VpaV+CXfZeQSDH2p_Y-w@mail.gmail.com>

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

      reply	other threads:[~2017-10-19 15:15 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
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 [this message]

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='CAFgFV9M42CZeh=hxF5GSf0K_xV9X0wko9iuf1iHNGnR_e1whLw@mail.gmail.com' \
    --to=fabrice.popineau@centralesupelec.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=joseph.vidal.rosset@gmail.com \
    --cc=slemaguer@coli.uni-saarland.de \
    /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).