From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: Re: problems with org-tempo Date: Fri, 14 Dec 2018 09:08:59 +0100 Message-ID: <87a7l8h6n8.fsf@mat.ucm.es> References: <87bm5pkqam.fsf@mat.ucm.es> <87sgz0fsel.fsf@mat.ucm.es> 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]:37505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXiex-00030I-GR for emacs-orgmode@gnu.org; Fri, 14 Dec 2018 03:17:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXieu-000691-CT for emacs-orgmode@gnu.org; Fri, 14 Dec 2018 03:17:23 -0500 Received: from [195.159.176.226] (port=41304 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXieu-00067e-1m for emacs-orgmode@gnu.org; Fri, 14 Dec 2018 03:17:20 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gXici-0003Tc-L0 for emacs-orgmode@gnu.org; Fri, 14 Dec 2018 09:15:04 +0100 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 >>> "Uwe" == Uwe Brauer writes: >> 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) >> "> #+end_src > Thanks that works like charm. However I have some more templates of > the form so I tried > #+begin_src emacs-lisp > (tempo-define-template "org-display-bib" > '("bibliographystyle:plain" n > "bibliography:/home/oub/texmf/bibtex/bib/bibgraf.bib" p n) > " (tempo-define-template "org-display-comentario" > '("* Comentarios Hoja ?" n > "| Documentación codigo | Explicación código | Ficheros matlab | Fichero MLX | Impresión |" p n > "|----------------------+--------------------+-----------------+-------------+-----------|" p n > "| | | | | |" p n) > " #+end_src After restarting emacs, the second template also works, so this is settled. Sorry for not having tested it before. An additional question though: it is possible to have the cursor at a specific position, as in the old org template system (using ?) Thanks Uwe Brauer