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: Uwe Brauer
Subject: Re: [O] problems with org-tempo
Date: Fri, 14 Dec 2018 09:08:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>>> "Uwe" == Uwe Brauer <address@hidden> 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 




reply via email to

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