From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Maarten Bergvelt Newsgroups: gmane.emacs.help Subject: Re: LaTeX Keybindings for Math Symbols Date: Thu, 27 Apr 2006 15:36:42 +0000 (UTC) Organization: Department of Mathematics, UIUC. Message-ID: References: Reply-To: bergv@uiuc.edu NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1146152442 25122 80.91.229.2 (27 Apr 2006 15:40:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Apr 2006 15:40:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 27 17:40:37 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FZ8bR-0003v1-AP for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Apr 2006 17:40:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FZ8bQ-0004DA-Qi for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Apr 2006 11:40:24 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.prairienet.org!news.ks.uiuc.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: bolmikolke.math.uiuc.edu Original-X-Trace: news.ks.uiuc.edu 1146152202 1158 130.126.108.244 (27 Apr 2006 15:36:42 GMT) Original-X-Complaints-To: news+abuse@ks.uiuc.edu Original-NNTP-Posting-Date: Thu, 27 Apr 2006 15:36:42 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:139060 Original-To: help-gnu-emacs@gnu.org 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:34681 Archived-At: In article , Ryan Krauss wrote: > I would like to create Latex keybindings for math symbols (or find > out what they are if they already exist). For example, in Vim I > used to have mappings for `t -> \tau so that typing ` and then a > english character would insert the Latex math code for the > corresponding greek symbol (`a would insert \alpha and `b would > insert \beta ...). > > My first attempts at writing a key binding have failed: > (global-set-key "`q" "\theta") > leads to: > error: "Key sequence ` q uses invalid prefix characters" > > So, I think part of the problem is that I need a valid set of > short-cut keys where I can set a,b,d,t, q, w, ... versions to things. > > Do such mappings for latex greek characters already exist? If not, > can someone help me with an example of a valid global-set-key? Are you aware of the existence of AucTeX? http://www.gnu.org/software/auctex/ It looks as if you want to reinvent the wheel. In particular if you enter Math Mode 'a inserts \alpha. -- Maarten Bergvelt