From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Roger Levy Newsgroups: gmane.emacs.help Subject: Re: adding C-c C-f C-p shortcut for \textipa Date: Wed, 30 Jan 2008 07:08:55 -0800 (PST) Organization: http://groups.google.com Message-ID: <61c46a74-cb58-431f-92b3-231a0baee83d@v17g2000hsa.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1201707745 28988 80.91.229.12 (30 Jan 2008 15:42:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Jan 2008 15:42:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 30 16:42:37 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JKF59-0003cZ-NN for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Jan 2008 16:42:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKF4i-00046c-CO for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Jan 2008 10:42:08 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!v17g2000hsa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: 71.128.203.183 Original-X-Trace: posting.google.com 1201705736 12019 127.0.0.1 (30 Jan 2008 15:08:56 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 30 Jan 2008 15:08:56 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v17g2000hsa.googlegroups.com; posting-host=71.128.203.183; posting-account=-3sXwAoAAABzUnyzi9zrPCDp50ddk2SA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:155705 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51087 Archived-At: On Jan 22, 11:49 am, Roger Levy wrote: > On Jan 22, 9:54 am, Stephen Berman wrote: > > > On Mon, 21 Jan 2008 15:18:13 -0800 (PST) Roger Levy 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 LaTeX-font-list 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