From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: autoinsert Date: Thu, 07 Jun 2018 17:06:20 -0400 Message-ID: <87k1rab92r.fsf@alphaville.usersys.redhat.com> References: <87muw6ldp5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fR277-00051j-4q for emacs-orgmode@gnu.org; Thu, 07 Jun 2018 17:06:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fR273-0000FO-RC for emacs-orgmode@gnu.org; Thu, 07 Jun 2018 17:06:33 -0400 Received: from [195.159.176.226] (port=35941 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fR273-0008VW-Gx for emacs-orgmode@gnu.org; Thu, 07 Jun 2018 17:06:29 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fR24t-0003nJ-C0 for emacs-orgmode@gnu.org; Thu, 07 Jun 2018 23:04:15 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Joseph Vidal-Rosset 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