all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Roger Levy <sinoslav@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: adding C-c C-f C-p shortcut for \textipa
Date: Wed, 30 Jan 2008 07:08:55 -0800 (PST)	[thread overview]
Message-ID: <61c46a74-cb58-431f-92b3-231a0baee83d@v17g2000hsa.googlegroups.com> (raw)
In-Reply-To: bcfbe045-c82c-472d-b110-effa51001a69@k39g2000hsf.googlegroups.com

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

      reply	other threads:[~2008-01-30 15:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=61c46a74-cb58-431f-92b3-231a0baee83d@v17g2000hsa.googlegroups.com \
    --to=sinoslav@gmail.com \
    --cc=help-gnu-emacs@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 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.