Merge pull request #606 from alexeyr/company-auctex

Add company backends for AUCTeX
This commit is contained in:
Bozhidar Batsov 2014-07-19 09:31:57 +03:00
commit 275289a497

View file

@ -35,6 +35,11 @@
(prelude-require-packages '(auctex)) (prelude-require-packages '(auctex))
(require 'smartparens-latex) (require 'smartparens-latex)
(eval-after-load "company"
'(progn
(prelude-require-packages '(company-auctex))
(company-auctex-init)))
;; AUCTeX configuration ;; AUCTeX configuration
(setq TeX-auto-save t) (setq TeX-auto-save t)
(setq TeX-parse-self t) (setq TeX-parse-self t)
@ -57,6 +62,7 @@
("HTML Viewer" "open %o")))) ("HTML Viewer" "open %o"))))
(defun prelude-latex-mode-defaults () (defun prelude-latex-mode-defaults ()
"Default Prelude hook for `LaTeX-mode'."
(turn-on-auto-fill) (turn-on-auto-fill)
(abbrev-mode +1) (abbrev-mode +1)
(smartparens-mode +1)) (smartparens-mode +1))