From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: problems with org-tempo
Date: Fri, 14 Dec 2018 09:08:59 +0100 [thread overview]
Message-ID: <87a7l8h6n8.fsf@mat.ucm.es> (raw)
In-Reply-To: 87sgz0fsel.fsf@mat.ucm.es
>>> "Uwe" == Uwe Brauer <oub@mat.ucm.es> 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)
>> "<b" "Insert bib" 'org-tempo-tags)
>> #+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)
> "<b" "Insert bib" 'org-tempo-tags)
> (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)
> "<c" "Insert comentario" 'org-tempo-tags)
> #+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
prev parent reply other threads:[~2018-12-14 8:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-13 22:36 problems with org-tempo Uwe Brauer
2018-12-14 1:55 ` Berry, Charles
2018-12-14 8:01 ` Uwe Brauer
2018-12-14 8:08 ` [partially solved: cursor] (was: problems with org-tempo) Uwe Brauer
2018-12-14 8:08 ` Uwe Brauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a7l8h6n8.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).