auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] adding C-c C-f C-p shortcut for \textipa


From: Roger Levy
Subject: Re: [AUCTeX] adding C-c C-f C-p shortcut for \textipa
Date: Tue, 22 Jan 2008 12:51:29 -0800
User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031)

Ralf Angeli wrote:
* Roger Levy (2008-01-22) writes:

If you really want to manually put some code which you might not
understand into your init file, then use something like the following
(not tested):

(add-to-list 'LaTeX-font-list '(?\C-p "\\textipa{" "}"))
At any rate, the snippet above doesn't turn out to work (I'm guessing that emacs doesn't know about LaTeX-font-list until a LaTeX document has actually been opened?), so I'll stick with the user-friendly customization for now.

Oh, sorry, I didn't think about that.  You will have to wrap into
`eval-after-load':

(eval-after-load "latex"
  '(add-to-list 'LaTeX-font-list '(?\C-p "\\textipa{" "}")))

Terrific -- this works!

I personally *do* find having this snippet in my init file preferable to doing the customization through the menus. So thanks again.

Best

Roger

--

Roger Levy                      Email: address@hidden
Assistant Professor             Phone: 858-534-7219
Department of Linguistics       Fax:   858-534-4789
UC San Diego                    Web:   http://ling.ucsd.edu/~rlevy




reply via email to

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