help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Set LaTeX-math-abbrev-prefix


From: Ralf Angeli
Subject: Re: Set LaTeX-math-abbrev-prefix
Date: Mon, 23 Jun 2008 18:52:17 +0200

* Florian Lindner (2008-06-23) writes:

> I try to set this variable to another value which is easier to reach
> on my keyboard.
>
> (add-hook 'LaTeX-mode-hook
>         (lambda ()
>           (local-set-key (kbd "RET") 'reindent-then-newline-and-indent)

You could also customize `TeX-newline-function' as suggested by the
AUCTeX manual.

>           (local-set-key (kbd "C-c SPC") 'LaTeX-math-mode)
>           (setq LaTeX-math-abbrev-prefix (kbd "#"))))
>
> C-h v says it has the correct value but it does not work. It also
> says:
> "Setting this variable directly does not take effect; use M-x
> customize."
>
> However I would prefer not using customize. How can I set this
> variable manually?

Simply use
(setq LaTeX-math-abbrev-prefix "#")

The hint in the doc string refers to setting it in a running Emacs
session after latex.el was loaded.

-- 
Ralf


reply via email to

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