emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: autoinsert
Date: Thu, 07 Jun 2018 17:06:20 -0400	[thread overview]
Message-ID: <87k1rab92r.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: 87muw6ldp5.fsf@gmail.com

Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:

> Hello,
>
> To get an .org file with my .bib links I’m using this code in my user.el
> (i.e. init.el):
>
>  (require 'autoinsert)
> (push '(org-mode . "/home/joseph/MEGA/org/orgskeleton.org") auto-insert-alist)
> (add-hook 'find-file-hook 'auto-insert)
>
> in this orgskeleton.org there is only these links:
>
> /home/joseph/MEGA/org/reforg.bib
>
> Now, I would be happy to define a beamerskeleton.org into a beamer
> directory, a article-skeleton.org ino a papers directory and so on,
> in order to get default files for beamer presentations, papers, and so
> on. Reading autoinsert.el, I guess that it is possible, but I am
> really to bad in lisp to get the right code to autoinsert different
> skeletons when I open a new file in different directories.
>

I'm not sure I understand the problem.

Are you producing the beamer presentations, the papers, etc. from org
files? If so, isn't the org-mode insertion enough? If not, why not?
 
-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler

  reply	other threads:[~2018-06-07 21:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-07 17:16 autoinsert Joseph Vidal-Rosset
2018-06-07 21:06 ` Nick Dokos [this message]
2018-06-08  7:12   ` autoinsert Joseph Vidal-Rosset
2018-06-08  7:32     ` autoinsert Joseph Vidal-Rosset
2018-06-08  7:38       ` autoinsert Joseph Vidal-Rosset
2018-06-08  8:37         ` autoinsert Joseph Vidal-Rosset
2018-06-09  9:57           ` autoinsert Eric S Fraga

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=87k1rab92r.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).