From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: insert default template when I create a new org buffer? Date: Wed, 1 Jul 2015 18:37:59 -0400 Message-ID: References: <877fqk1ieo.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf3033477d990bd60519d7f981 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAQdm-0005np-A1 for emacs-orgmode@gnu.org; Wed, 01 Jul 2015 18:38:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAQdk-0008LV-KS for emacs-orgmode@gnu.org; Wed, 01 Jul 2015 18:38:02 -0400 Received: from mail-vn0-x229.google.com ([2607:f8b0:400c:c0f::229]:46923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAQdk-0008L1-FP for emacs-orgmode@gnu.org; Wed, 01 Jul 2015 18:38:00 -0400 Received: by vnbg190 with SMTP id g190so8249782vnb.13 for ; Wed, 01 Jul 2015 15:38:00 -0700 (PDT) In-Reply-To: <877fqk1ieo.fsf@ucl.ac.uk> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Price , Org Mode --20cf3033477d990bd60519d7f981 Content-Type: text/plain; charset=UTF-8 On Wed, Jul 1, 2015 at 2:49 AM, Eric S Fraga wrote: > On Tuesday, 30 Jun 2015 at 20:40, Matt Price wrote: > > Hi folks, > > > > I seem to remember, years ago, that when I created new org buffers the > > default export template whould be inserted at the top of the file > > automatically. Now I can't remember how I made that happen. Is thre a > > really simple way to od this that I've just forgotten? Thanks, > > Matt > > M-x org-export-insert-default-template RET > > and then choose which version as there are specific templates for > different export targets. > Thanks Eric. I have the notion I should be able to have emacs just insert the template for me when the buffer is created. Maybe what I need is "auto-insert-mode" but I can't quite figure out how to have it run a function. Was hoping someone else had figured it out already! > > -- > : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org > release_8.3beta-1260-gcedef7 > --20cf3033477d990bd60519d7f981 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Wed, Jul 1, 2015 at 2:49 AM, Eric S Fraga <e.fraga@ucl.ac.uk>= ; wrote:
On Tuesday, 30 Jun 2015 at 20:40, Matt Price wrote:
> Hi folks,
>
> I seem to remember, years ago, that when I created new org buffers the=
> default export template whould be inserted at the top of the file
> automatically.=C2=A0 Now I can't remember how I made that happen.= =C2=A0 Is thre a
> really simple way to od this that I've just forgotten?=C2=A0 Thank= s,
> Matt

M-x org-export-insert-default-template RET

and then choose which version as there are specific templates for
different export targets.

Thanks Eric.= =C2=A0 I have the notion I should be able to have emacs just insert the tem= plate for me when the buffer is created.=C2=A0 Maybe what I need is "a= uto-insert-mode" but I can't quite figure out how to have it run a= function.=C2=A0 Was hoping someone else had figured it out already!
=C2=A0

--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1260-gced= ef7

--20cf3033477d990bd60519d7f981--