From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: problems with org-tempo Date: Fri, 14 Dec 2018 01:55:27 +0000 Message-ID: References: <87bm5pkqam.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXchW-0005M1-4m for emacs-orgmode@gnu.org; Thu, 13 Dec 2018 20:55:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXchS-0002zR-Uu for emacs-orgmode@gnu.org; Thu, 13 Dec 2018 20:55:38 -0500 Received: from iport-acv2-out.ucsd.edu ([132.239.0.174]:36180) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXchS-0002cE-EE for emacs-orgmode@gnu.org; Thu, 13 Dec 2018 20:55:34 -0500 In-Reply-To: <87bm5pkqam.fsf@mat.ucm.es> Content-Language: en-US Content-ID: <9A4AFDFED5477F4C9FA98E23B703CDE9@AD.UCSD.EDU> 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: Uwe Brauer Cc: Rasmus Pank Roulund , "emacs-orgmode@gnu.org" > On Dec 13, 2018, at 2:36 PM, Uwe Brauer wrote: >=20 >=20 > Hi=20 >=20 > I hoped that org-tempo would be a substitute for the old beloved org > template system. well >=20 > 1. It expands =20 > 2. The syntax is not the same for example I want=20 >=20 > Key: b > Keyword: =20 > bibliographystyle:plain > bibliography:/home/oub/texmf/bibtex/bib/bibgraf.bib >=20 >=20 > But=20 > =20 > Expands to=20 >=20 > #+bibliographystyle:plain > bibliography:/home/oub/texmf/bibtex/bib/bibgraf.bib:=20 >=20 > Which is annoying. It should be >=20 > bibliographystyle:plain > bibliography:/home/oub/texmf/bibtex/bib/bibgraf.bib >=20 > Any chance to get that behavior. I don't feel like learning a new tool > for inserting template, since I am very acquainted with the old one. >=20 You need `(require 'org-tempo)', then #+begin_src emacs-lisp (tempo-define-template "org-display-bib" '("bibliographystyle:plain" n "bibliography:/home/oub/texmf/bibtex/bib/bibgraf.bib" p n) "