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: Florian . Lindner
Subject: Re: Set LaTeX-math-abbrev-prefix
Date: Mon, 23 Jun 2008 13:31:28 -0700 (PDT)
User-agent: G2/1.0

On 23 Jun., 18:52, Ralf Angeli <address@hidden> wrote:
> * 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.

Thanks, that looks cleaner, done that.

>
> >        (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 "#")

That I have also tried but does not work.
(customize-set-variable 'LaTeX-math-abbrev-prefix (kbd "#"))  like
Kevin suggested does the job.

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




reply via email to

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