[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] autoinsert

From: Nick Dokos
Subject: Re: [O] autoinsert
Date: Thu, 07 Jun 2018 17:06:20 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Joseph Vidal-Rosset <address@hidden> 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?

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]