Re: [AUCTeX] font lock user-defined commands
Ralf, Thanks for the quick response. I had snipped the initial quote, and I had restarted emacs. Now it works after changing one more thing: I changed '(font-latex-match-bold-command-keywords '(defin)) to '(font-latex-match-bold-command-keywords (quote (defin))) I think this must be a coincidence; something else must have changed. I probably should not have manually edited my custom variables! Thanks, Hans At Thu, 05 Jul 2007 23:13:19 +0200, Ralf Angeli wrote: * Hans Halvorson (2007-07-05) writes: As a test, I am trying to get \defin to highlight. I have tried both of the following in the custom variables in my .emacs: (font-latex-user-keyword-classes (quote ((defin (defin) (:foreground cyan) (command 1) In case you produced this via Customize it looks okay except for the missing quote at its start which you probably snipped. (font-latex-match-bold-command-keywords '(defin)) Neither of these is making any difference -- \defin and \defin{foobar} are still showing up in light gray. What am I doing wrong here? (I am running AucTeX 11.84 on Emacs CVS 22.1.50.) Did you restart Emacs after saving the customization? -- Ralf ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] font lock user-defined commands
Hans Halvorson [EMAIL PROTECTED] writes: Ralf, Thanks for the quick response. I had snipped the initial quote, and I had restarted emacs. Now it works after changing one more thing: I changed '(font-latex-match-bold-command-keywords '(defin)) to '(font-latex-match-bold-command-keywords (quote (defin))) I think this must be a coincidence; something else must have changed. Yes, the above are exactly the same. Maybe you used a different quote character (non-ASCII accents are rather popular for that mistake). -- David Kastrup ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
[AUCTeX] font lock user-defined commands
Regarding font-locking of user-defined commands, I have tried to follow the instructions in the manual, and I am still unable to get it to work. As a test, I am trying to get \defin to highlight. I have tried both of the following in the custom variables in my .emacs: (font-latex-user-keyword-classes (quote ((defin (defin) (:foreground cyan) (command 1) (font-latex-match-bold-command-keywords '(defin)) Neither of these is making any difference -- \defin and \defin{foobar} are still showing up in light gray. What am I doing wrong here? (I am running AucTeX 11.84 on Emacs CVS 22.1.50.) Thanks, Hans ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex