branch: master
commit 21ac1c7a4077a20746bff00a85150f82f6c3130a
Author: Vitalie Spinu <spinu...@gmail.com>
Commit: Vitalie Spinu <spinu...@gmail.com>

    Update readme as per TeX-mode-hook problem
---
 readme.md | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/readme.md b/readme.md
index 6003d7f..fa80258 100644
--- a/readme.md
+++ b/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)
  
 ```
 
+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

Reply via email to