From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: autoinsert Date: Thu, 07 Jun 2018 19:16:22 +0200 Message-ID: <87muw6ldp5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQyWS-0001FB-Iy for emacs-orgmode@gnu.org; Thu, 07 Jun 2018 13:16:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQyWQ-0000u6-K6 for emacs-orgmode@gnu.org; Thu, 07 Jun 2018 13:16:28 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:34696) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQyWQ-0000ta-CC for emacs-orgmode@gnu.org; Thu, 07 Jun 2018 13:16:26 -0400 Received: by mail-wm0-x230.google.com with SMTP id q4-v6so4000201wmq.1 for ; Thu, 07 Jun 2018 10:16:26 -0700 (PDT) Received: from debian ([2a01:e35:2ea9:9d00:cde7:da8e:2e9a:7fbb]) by smtp.gmail.com with ESMTPSA id z192-v6sm1541026wmc.10.2018.06.07.10.16.22 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Jun 2018 10:16:23 -0700 (PDT) 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 list --=-=-= Content-Type: text/plain Hello, To get an .org file with my .bib links I'm using this code in my user.el (i.e. init.el): #+BEGIN_SRC (require 'autoinsert) (push '(org-mode . "/home/joseph/MEGA/org/orgskeleton.org") auto-insert-alist) (add-hook 'find-file-hook 'auto-insert) #+END_SRC in this orgskeleton.org there is only these links: [[bibliography:/home/joseph/MEGA/org/reforg.bib]] [[bibliographystyle:apalike]] 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 need help, and in advance, many thanks. Best wishes, -- Jo. --=-=-= Content-Type: multipart/related; boundary="==-=-=" --==-=-= Content-Type: text/html

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 need help, and in advance, many thanks.

Best wishes,


Jo.

--==-=-=-- --=-=-=--