emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: problems with org-tempo
Date: Fri, 14 Dec 2018 09:01:54 +0100	[thread overview]
Message-ID: <87sgz0fsel.fsf@mat.ucm.es> (raw)
In-Reply-To: FED39787-1071-4F59-8D8E-36D70C27C3E9@ucsd.edu

[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]




   > 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


But the second template to be expanded with <c does not work.

What do I miss?

Thanks 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5025 bytes --]

  reply	other threads:[~2018-12-14  8:02 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 [this message]
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=87sgz0fsel.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).