From: "Berry, Charles" <ccberry@ucsd.edu>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: Rasmus Pank Roulund <emacs@pank.eu>,
"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: problems with org-tempo
Date: Fri, 14 Dec 2018 01:55:27 +0000 [thread overview]
Message-ID: <FED39787-1071-4F59-8D8E-36D70C27C3E9@ucsd.edu> (raw)
In-Reply-To: <87bm5pkqam.fsf@mat.ucm.es>
> On Dec 13, 2018, at 2:36 PM, Uwe Brauer <oub@mat.ucm.es> wrote:
>
>
> Hi
>
> I hoped that org-tempo would be a substitute for the old beloved org
> template system. well
>
> 1. It expands <b + TAB. That is good. However
>
> 2. The syntax is not the same for example I want
>
> Key: b
> Keyword:
> bibliographystyle:plain
> bibliography:/home/oub/texmf/bibtex/bib/bibgraf.bib
>
>
> But
> <b
>
> Expands to
>
> #+bibliographystyle:plain
> bibliography:/home/oub/texmf/bibtex/bib/bibgraf.bib:
>
> Which is annoying. It should be
>
> bibliographystyle:plain
> bibliography:/home/oub/texmf/bibtex/bib/bibgraf.bib
>
> 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.
>
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
should do it.
HTH,
Chuck
next prev parent reply other threads:[~2018-12-14 1:55 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 [this message]
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 ` problems with org-tempo Uwe Brauer
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=FED39787-1071-4F59-8D8E-36D70C27C3E9@ucsd.edu \
--to=ccberry@ucsd.edu \
--cc=emacs-orgmode@gnu.org \
--cc=emacs@pank.eu \
--cc=oub@mat.ucm.es \
/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).