X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/0771ac6f5eeaad1965fe7759aeb9a6544eab2adb..f10533854f4c7bb54247a11981191bf37b70cb36:/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