From mboxrd@z Thu Jan 1 00:00:00 1970 From: "o.castillo.felisola@gmail.com" Subject: Re: How to define shortcut for equations Date: Fri, 31 Jan 2014 09:53:34 -0300 Message-ID: References: <87vbx0iahb.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6d891c682aee04f143a9b7 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9DbE-0006tL-Fq for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 07:53:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9DbD-0004uS-I4 for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 07:53:36 -0500 In-Reply-To: <87vbx0iahb.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org --047d7b6d891c682aee04f143a9b7 Content-Type: text/plain; charset=ISO-8859-1 Bastien... You were right! I guess the previous session didn't charge the updated configuration. Thx. Cheers. On Fri, Jan 31, 2014 at 9:47 AM, Bastien wrote: > "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 TAB then the snippet is expanded. > > What version of Org are you using? > > -- > Bastien > -- _____________________________________ Oscar Castillo-Felisola. Grupo de Fisica Teorica. UTFSM -- CCTVal. Av. Espana, 1680, Valparaiso-Chile. ______________________________________ --047d7b6d891c682aee04f143a9b7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Bastien... You were right! I guess the previous sessi= on didn't charge the updated configuration.

Thx. Cheers.


On Fr= i, Jan 31, 2014 at 9:47 AM, Bastien <bzg@gnu.org> wrote:
"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"
> =A0 '(add-to-list 'org-structure-template-alist
> =A0=A0=A0 '("E" "\\begin\{equation\}\n?\n\\end\{equ= ation\}" "")))
> #+END_SRC
> -----8<------------ Code End=A0 --------->8------

It works fine here. =A0I insert <E at the beginning of the line th= en hit
TAB then the snippet is expanded.

What version of Org are you using?

--
=A0Bastien



--
_____________________________________
Oscar Castillo-Felisola.
Grupo de Fisica Te= orica.
UTFSM -- CCTVal.
Av. Espana, 1680, Valparaiso-Chile.
________________= ______________________=A0
--047d7b6d891c682aee04f143a9b7--