From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: Re: autoinsert Date: Fri, 08 Jun 2018 09:12:08 +0200 Message-ID: <87a7s5wy47.fsf@gmail.com> References: <87muw6ldp5.fsf@gmail.com> <87k1rab92r.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRBZH-0003dA-7K for emacs-orgmode@gnu.org; Fri, 08 Jun 2018 03:12:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRBZE-0000gu-QC for emacs-orgmode@gnu.org; Fri, 08 Jun 2018 03:12:15 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:52134) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRBZE-0000gB-Fx for emacs-orgmode@gnu.org; Fri, 08 Jun 2018 03:12:12 -0400 Received: by mail-wm0-x234.google.com with SMTP id r15-v6so1468846wmc.1 for ; Fri, 08 Jun 2018 00:12:12 -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: Nick Dokos Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Le jeu. 07 juin 2018 =C3=A0 05:06:20 , Nick Dokos a envo= y=C3=A9 ce message: #+BEGIN_QUOTE > 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? #+END_QUOTE Many thanks for your question. Yes, I am now always using org-mode for my beamer presentations and my papers. But the org-mode templates for beamer presentations are of course different from papers's and I want to define different skeletons.org to auto-insert according the fact I am writing a new file in such or such directory.=20 Suppose that, for example, I am writing a new beamer presentation, say new-beamer-talk.org in /home/joseph/MEGA/org/beamer/, it would be nice to get auto-insertion of my org template for my beamer presentation via a beamer-skeleton.org, and the same thing for a new-paper.org if that I want to register in /home/joseph/MEGA/org/papers/, getting an auto-insertion of paper-skeleton.org for this new-paper.org, and so on. I suppose that it is possible, and even that it is quite easy to get it, but I do not know how to code it.=20 At the moment, I am reading [[https://www.emacswiki.org/emacs/AutoInsertMod= e]] and [[https://www.emacswiki.org/emacs/SkeletonMode]] to find the solution.=20 Help is always welcome. Best wishes, --=20 Jo. --=-=-= Content-Type: multipart/related; boundary="==-=-=" --==-=-= Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Le jeu. 07 juin 2018 =C3=A0 05:06:20 , Nick Dokos <ndokos@gmail.com> = a envoy=C3=A9
ce message:

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?

Many thanks for your question. Yes, I am now always using org-mode for
my beamer presentations and my papers. But the org-mode templates for
beamer presentations are of course different from papers’s and I wan= t
to define different skeletons.org to auto-insert according the fact I
am writing a new file in such or such directory.

Suppose that, for example, I am writing a new beamer presentation, say
new-beamer-talk.org in home/joseph/MEGA/org/beamer, it would be nice=
to get auto-insertion of my org template for my beamer presentation
via a beamer-skeleton.org, and the same thing for a new-paper.org if
that I want to register in home/joseph/MEGA/org/papers, getting an=
auto-insertion of paper-skeleton.org for this new-paper.org, and so
on. I suppose that it is possible, and even that it is quite easy to
get it, but I do not know how to code it.

At the moment, I am reading https://www.emacswiki.org/emacs/AutoInsertMode
and https://www.em= acswiki.org/emacs/SkeletonMode
to find the solution.

Help is always welcome.

Best wishes,

Jo.

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