[OS X Emacs] highlighting underscore and caret in aquamacs in latexmode
Win Treese
treese at acm.org
Tue Nov 3 23:14:08 EST 2020
Hi, Chris. I think the following code will disable AUCTeX for you. Put it as the first code in the file ~/Library/Preferences/Aquamacs Emacs/Preferences.el.
(require 'cl)
(when (featurep 'tex-site)
(unload-feature 'tex-site))
(setq load-path (remove-if (lambda (x) (string-suffix-p "auctex" x)) load-path))
It’s a quick hack tonight, so use at your own risk, of course!
- Win
> On Nov 3, 2020, at 9:45 PM, Chris Judge <cjudge2 at gmail.com> wrote:
>
> Hi Win,
>
> Thank you! font-latex-script-char-face is what I was looking for.
>
> But is there any way to turn off Auctex in Aquamacs?
>
> -Chris
>
> On 11/3/20 8:19 PM, Win Treese wrote:
>>> On Nov 3, 2020, at 10:46 AM, Chris Judge <cjudge2 at gmail.com> wrote:
>>>
>>> Aquamacs 3.5 in latexmode highlights underscore and caret characters.
>>> Is there any way to turn this off ?
>>>
>>> By comparison, Emacs24 on Linux treats underscore and carets like other characters in math environment.
>> Hi, Chris. In the out-of-the-box configuration, Emacs 24 on Linux uses the standard Emacs latex-mode and Aquamacs uses AUCTeX (https://www.gnu.org/software/auctex/), and the highlighting is different between the two.
>>
>> With Aquamacs, you can turn off the highlighting by customizing the variable font-latex-fontify-script and setting it to nil. That may leave the underscore and caret in a different color; if you want to change that, you can customize the face font-latex-script-char-face.
>>
>> Does that do what you want?
>>
>> - Win
>>
>>
>> _____________________________________________________________
>> MacOSX-Emacs mailing list
>> MacOSX-Emacs at email.esm.psu.edu
>> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
>> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
>
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
More information about the MacOSX-Emacs
mailing list