* adding C-c C-f C-p shortcut for \textipa
@ 2008-01-21 23:18 Roger Levy
2008-01-22 17:54 ` Stephen Berman
[not found] ` <mailman.6411.1201024457.18990.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 4+ messages in thread
From: Roger Levy @ 2008-01-21 23:18 UTC (permalink / raw)
To: help-gnu-emacs
I am a linguist who uses AucTeX and I would like to add a key binding
for C-c C-f C-p that behaves exactly like other C-c C-f * commands
(e.g., C-c C-f C-e for \emph), but introduces the textfont \textipa
(for the International Phonetic Alphabet). How would I do this? It
looks to me like I need to customize TeX-font-list but I'm not sure
the best way to do it (I'd prefer to doing this in my .emacs file
directly to using Emacs customization menus).
Many thanks,
Roger Levy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: adding C-c C-f C-p shortcut for \textipa
2008-01-21 23:18 adding C-c C-f C-p shortcut for \textipa Roger Levy
@ 2008-01-22 17:54 ` Stephen Berman
[not found] ` <mailman.6411.1201024457.18990.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Berman @ 2008-01-22 17:54 UTC (permalink / raw)
To: help-gnu-emacs
On Mon, 21 Jan 2008 15:18:13 -0800 (PST) Roger Levy <sinoslav@gmail.com> wrote:
> I am a linguist who uses AucTeX and I would like to add a key binding
> for C-c C-f C-p that behaves exactly like other C-c C-f * commands
> (e.g., C-c C-f C-e for \emph), but introduces the textfont \textipa
> (for the International Phonetic Alphabet). How would I do this? It
> looks to me like I need to customize TeX-font-list but I'm not sure
> the best way to do it (I'd prefer to doing this in my .emacs file
> directly to using Emacs customization menus).
Does this work?
(add-to-list 'TeX-font-list '(?\C-p "\\textipa{" "}"))
Steve Berman
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.6411.1201024457.18990.help-gnu-emacs@gnu.org>]
* Re: adding C-c C-f C-p shortcut for \textipa
[not found] ` <mailman.6411.1201024457.18990.help-gnu-emacs@gnu.org>
@ 2008-01-22 19:49 ` Roger Levy
2008-01-30 15:08 ` Roger Levy
0 siblings, 1 reply; 4+ messages in thread
From: Roger Levy @ 2008-01-22 19:49 UTC (permalink / raw)
To: help-gnu-emacs
On Jan 22, 9:54 am, Stephen Berman <Stephen.Ber...@gmx.net> wrote:
> On Mon, 21 Jan 2008 15:18:13 -0800 (PST) Roger Levy <sinos...@gmail.com> wrote:
>
> > I am a linguist who uses AucTeX and I would like to add a key binding
> > for C-c C-f C-p that behaves exactly like other C-c C-f * commands
> > (e.g., C-c C-f C-e for \emph), but introduces the textfont \textipa
> > (for the International Phonetic Alphabet). How would I do this? It
> > looks to me like I need to customize TeX-font-list but I'm not sure
> > the best way to do it (I'd prefer to doing this in my .emacs file
> > directly to using Emacs customization menus).
>
> Does this work?
>
> (add-to-list 'TeX-font-list '(?\C-p "\\textipa{" "}"))
Nope...but thanks for the suggestion! (Also, putting that straight
into .emacs causes emacs to balk on startup, presumably because it
doesn't know anything about 'TeX-font-list.)
Actually, please don't respond further to this message as I think the
AUCTeX mailing list is a more appropriate forum.
Roger
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: adding C-c C-f C-p shortcut for \textipa
2008-01-22 19:49 ` Roger Levy
@ 2008-01-30 15:08 ` Roger Levy
0 siblings, 0 replies; 4+ messages in thread
From: Roger Levy @ 2008-01-30 15:08 UTC (permalink / raw)
To: help-gnu-emacs
On Jan 22, 11:49 am, Roger Levy <sinos...@gmail.com> wrote:
> On Jan 22, 9:54 am, Stephen Berman <Stephen.Ber...@gmx.net> wrote:
>
> > On Mon, 21 Jan 2008 15:18:13 -0800 (PST) Roger Levy <sinos...@gmail.com> wrote:
>
> > > I am a linguist who uses AucTeX and I would like to add a key binding
> > > for C-c C-f C-p that behaves exactly like other C-c C-f * commands
> > > (e.g., C-c C-f C-e for \emph), but introduces the textfont \textipa
> > > (for the International Phonetic Alphabet). How would I do this? It
> > > looks to me like I need to customize TeX-font-list but I'm not sure
> > > the best way to do it (I'd prefer to doing this in my .emacs file
> > > directly to using Emacs customization menus).
>
> > Does this work?
>
> > (add-to-list 'TeX-font-list '(?\C-p "\\textipa{" "}"))
>
> Nope...but thanks for the suggestion! (Also, putting that straight
> into .emacs causes emacs to balk on startup, presumably because it
> doesn't know anything about 'TeX-font-list.)
>
> Actually, please don't respond further to this message as I think the
> AUCTeX mailing list is a more appropriate forum.
Just FYI: there are two solutions that were generously provided to me
by Ralf Angeli on the AUCTeX mailing list:
1) Do M-x customize-variable <RET> LaTeX-font-list <RET> and add the
\textipa{} key binding through the Emacs customization menu. (You'll
need to do C-q C-p to enter the ^P character -- this should be more
transparent after you get to the menu.)
2) Add the following line to your init file:
(eval-after-load "latex"
'(add-to-list 'LaTeX-font-list '(?\C-p "\\textipa{" "}")))
which should do the trick as well.
I believe that in both cases you'll need AUCTeX installed.
Roger
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-01-30 15:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-21 23:18 adding C-c C-f C-p shortcut for \textipa Roger Levy
2008-01-22 17:54 ` Stephen Berman
[not found] ` <mailman.6411.1201024457.18990.help-gnu-emacs@gnu.org>
2008-01-22 19:49 ` Roger Levy
2008-01-30 15:08 ` Roger Levy
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.