emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] problems with org-tempo


From: Berry, Charles
Subject: Re: [O] problems with org-tempo
Date: Fri, 14 Dec 2018 01:55:27 +0000


> On Dec 13, 2018, at 2:36 PM, Uwe Brauer <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]