Re: syntax highlighting docs
Ralf Angeli <[email protected]> Mon, 07 Mar 2005 12:11:34 +0100
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
* Silvio Levy (2005-03-06) writes:
> I wanted to add some latex keywords of my own (which I use a lot)
> to the syntax tables. For instance, \fullref should behave like \ref
> and \pageref
>
> Per the documentation I tried M-x customize-group <RET> font-latex but
> this said "no match"; later in the same session (after I edited a
> latex file, perhaps?) I was able to run this command,
Yes, that's normal. When you start Emacs only a very small fraction
of AUCTeX will be loaded and only customization options of this
fraction will be available. AUCTeX's core, mode-specific files
etc. and their customization options will only be available after you
loaded a file requiring the respective features.
> but all attempts
> at changing the variables failed with the message "Attempt to change
> text outside editable field" (though I had the emacs cursor ("point")
> right on top of the [Show] ).
What version of AUCTeX and Emacs did you use? You could use `M-x
TeX-submit-bug-report RET' next time which would provide this
information among others without you having to add this manually.
Additionally a description of what you did exactly (step by step)
would be helpful.
In case of the reference command you want to add, I can e.g. in Emacs
do `M-x customize-variable RET font-latex-match-reference-keywords
RET', click on [INS], add "fullref" (without the quotation marks) in
the gray area, click "State -> Save for Future Sessions" and after
restarting Emacs the \fullref macros will be highlighted.
--
Ralf