emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 21ac1c7 14/34: Update readme as per TeX-mode-hook problem


From: Vitalie Spinu
Subject: [elpa] master 21ac1c7 14/34: Update readme as per TeX-mode-hook problem
Date: Tue, 7 May 2019 16:05:26 -0400 (EDT)

branch: master
commit 21ac1c7a4077a20746bff00a85150f82f6c3130a
Author: Vitalie Spinu <address@hidden>
Commit: Vitalie Spinu <address@hidden>

    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

[Prev in Thread] Current Thread [Next in Thread]