[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-
From: |
Tassilo Horn |
Subject: |
Re: [AUCTeX-devel] (add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode) |
Date: |
Wed, 02 Sep 2015 14:52:09 +0200 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) |
Tassilo Horn <address@hidden> writes:
> I see several ways to fix this:
>
> 1. Remove `font-latex-setup' from `latex-mode-hook' in
> `VirTeX-common-initialization'. I mean, then we know that the user
> uses AUCTeX's modes and not the built-in ones.
>
> 2. Don't add `font-latex-setup' to `latex-mode-hook' when loading
> font-latex.el in the first place.
>
> IMO, fix 2 is better because modifying stuff just by loading a lisp file
> is bad practice anyway. However, it will break for users of the Emacs
> built-in (la)tex-mode who use font-latex. They'd have to place
> `font-latex-setup' in their `latex-mode-hook' on their own then.
I've implemented fix 2 now. We'll see if that causes misery but I don't
think so.
Bye,
Tassilo