alexeyr / company-auctex

company-mode autocompletion for auctex
49 stars 18 forks source link

Make backend work without yas-minor-mode enabled #11

Closed cute-jumper closed 8 years ago

cute-jumper commented 8 years ago

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.

alexeyr commented 8 years ago

Thank you!