;; local configuration for TeX modes
(defun my-latex-mode-setup ()
(setq-local company-backends
- (append '(company-math-symbols-latex company-latex-commands)
+ (append '((company-math-symbols-latex company-latex-commands))
company-backends)))
-(add-hook 'TeX-mode-hook 'my-latex-mode-setup)
+(add-hook 'tex-mode-hook 'my-latex-mode-setup)
```
+If you are using `AUCTeX` you might need to use `TeX-mode-hook` instead:
+
+```
+(add-hook TeX-mode-hook 'my-latex-mode-setup)
+```
+
## Customization ##
Set `company-tooltip-align-annotations` to t in order to allin symbols to the