[Top][All Lists]

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

Re: [AUCTeX] Adding curly braces in math mode

From: Ralf Angeli
Subject: Re: [AUCTeX] Adding curly braces in math mode
Date: Tue, 01 Nov 2005 18:36:28 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

* David Kastrup (2005-11-01) writes:

> Ralf Angeli <address@hidden> writes:
>> Also, does anybody know why
>> `TeX-electric-escape'/`TeX-electric-macro' is implemented in a way
>> that Emacs has to be restarted for a change of `TeX-electric-escape'
>> to take effect?  If nobody objects I can change it, so that typing
>> `\' will always call `TeX-electric-macro' (maybe renamed) and the
>> function will then check the value of `TeX-electric-escape'.
> I don't feel that is a good idea.  Wouldn't it break the TeX input
> method, for example?

Experimenting with

  (defun foo ()
    (self-insert-command 1)
    (message "Rhabarber"))
  (global-set-key "\\" 'foo)
  (switch-to-buffer (get-buffer-create "*temp*"))
  (set-input-method "TeX"))

didn't show any negative effects.  I'll check what happens if
`TeX-mode-map' is used instead of the global keymap.


reply via email to

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