]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/company-math/readme.md
Fix some quoting problems in doc strings
[gnu-emacs-elpa] / packages / company-math / readme.md
index cc471942ea27f6a807f7c7b7e55068ecc8aaacb3..fa8025837520f492787ccdf984f1b5f3e8901505 100644 (file)
@@ -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