I don't enable yasnippet in the AUCTeX buffer, but I find company-auctex(and the original auto-complete-auctex) uses yas-expand-snippet to expand a snippet, which will cause error when yas-minor-mode is not enabled in current buffer. In this pull request, it checks whether yas-minor-mode is on before calling yas-expand-snippet. If not, enable it and disable it after the expansion.
I also added some font changing commands which should fix issue #10.
I don't enable yasnippet in the AUCTeX buffer, but I find
company-auctex
(and the originalauto-complete-auctex
) usesyas-expand-snippet
to expand a snippet, which will cause error whenyas-minor-mode
is not enabled in current buffer. In this pull request, it checks whetheryas-minor-mode
is on before callingyas-expand-snippet
. If not, enable it and disable it after the expansion.I also added some font changing commands which should fix issue #10.