From: Bastien <bzg@gnu.org>
To: "o.castillo.felisola@gmail.com" <o.castillo.felisola@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to define shortcut for equations
Date: Fri, 31 Jan 2014 13:47:44 +0100 [thread overview]
Message-ID: <87vbx0iahb.fsf@bzg.ath.cx> (raw)
In-Reply-To: <CAAJj91e24eQELiemdLQJaeVbs2h_J2g2WpPiq_jZS0M-pm40qw@mail.gmail.com> (o. castillo's message of "Fri, 31 Jan 2014 09:39:30 -0300")
"o.castillo.felisola@gmail.com" <o.castillo.felisola@gmail.com>
writes:
> I tried the following but does not work
>
> -----8<------------ Code Start --------->8------
> #+BEGIN_SRC emacs-lisp
> (eval-after-load "org"
> '(add-to-list 'org-structure-template-alist
> '("E" "\\begin\{equation\}\n?\n\\end\{equation\}" "")))
> #+END_SRC
> -----8<------------ Code End --------->8------
It works fine here. I insert <E at the beginning of the line then hit
TAB then the snippet is expanded.
What version of Org are you using?
--
Bastien
next prev parent reply other threads:[~2014-01-31 12:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-31 12:39 How to define shortcut for equations o.castillo.felisola
2014-01-31 12:47 ` Bastien [this message]
2014-01-31 12:53 ` o.castillo.felisola
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=87vbx0iahb.fsf@bzg.ath.cx \
--to=bzg@gnu.org \
--cc=emacs-orgmode@gnu.org \
--cc=o.castillo.felisola@gmail.com \
/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).