auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Changing keys in math mode


From: Stefan Schmitt
Subject: Re: [AUCTeX] Changing keys in math mode
Date: Fri, 03 Feb 2006 11:05:59 +0100

On Fri, 2006-02-03 at 10:44 +0100, Ralf Angeli wrote:
> > what's the proper way to change the key bindings in math mode?
> >
> > I want \not on `!, \frac on `/ and \infty on `8.
> 
> You could use something like this:
> 
> (eval-after-load "latex"
>   '(progn
>      (define-key LaTeX-math-keymap "!" 'LaTeX-math-not)
>      (define-key LaTeX-math-keymap "/" 'LaTeX-math-frac)
>      (define-key LaTeX-math-keymap "8" 'LaTeX-math-infty)))
> 
> Note that this means fiddling with internalities of AUCTeX and is not
> guaranteed to work forever.  Unfortunately there is no better
> interface for changing these bindings at the moment.

It does not work as it should. If I type 8 it expands to \infty, but it
should expand only for `8, same for the other keys. (note the ` )

I use version 11.55, btw.


Stefan





reply via email to

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