-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different highlighting when called from LaTeX-mode-hook #36
Comments
Upon preliminary inspection of magic-latex-buffer.el, it looks like the righthand column shows the intended result. It's supposed to change those faces. So now the issue is that MLB is not fully re-fontifying the buffer when activated in LaTeX-mode-hook. Will investigate further. |
The problem seems to be that
is being cancelled out. Manually enabling I will try to think of a non-hacky way to fix this. |
I can confirm that the problem goes away when I put |
Edit: Diagnosis isn't quite right; see next comment.
When I include
magic-latex-buffer
inLaTeX-mode-hook
(whether at the end or beginning, doesn't matter), the result iswhat I expectthat MLB works its magic inthe righta few places, and the rest of the highlighting is left alone. On the other hand, without MLB in the hook, if I open a file and then activate MLB manually, the highlighting changes drastically (e.g. highlighting all commands indiscriminately, removing the highlighting from command arguments, changing the colors of sections, etc.).In the screenshot below, the left column shows the "stock" highlighting without MLB. The middle one shows the result when MLB is included in the hook. On the right is the
undesirableresult I get upon manually activating MLB. (I also get this result if MLB is in the hook and I manually toggle it off and then back on.)For what it's worth, my
LaTeX-mode-hook
looks like(spacemacs/load-yasnippet smartparens-mode evil-matchit-mode mjk-latex//LaTeX-mode-hook turn-on-reftex magic-latex-buffer TeX-PDF-mode TeX-source-correlate-mode LaTeX-math-mode TeX-fold-mode latex/auto-fill-mode spacemacs//init-company-LaTeX-mode company-mode)
. This does not seem to be a Spacemacs-specific issue, but I can try it on a vanilla Emacs.The text was updated successfully, but these errors were encountered: