X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/6bc713541191d94282cd418f196cfe6d38473f0e..098582b08bc1117ad748e6e212adc7d1d20c9ef2:/packages/company-math/readme.md diff --git a/packages/company-math/readme.md b/packages/company-math/readme.md index cc471942e..fa8025837 100644 --- a/packages/company-math/readme.md +++ b/packages/company-math/readme.md @@ -39,13 +39,19 @@ or locally per emacs mode: ;; 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