From 27d74fe405983734544c922fbdc14521fa1d972c Mon Sep 17 00:00:00 2001 From: Alexey Romanov Date: Thu, 10 Jul 2014 16:19:22 +0400 Subject: [PATCH] Company autocompletion for AUCTeX --- modules/prelude-latex.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/prelude-latex.el b/modules/prelude-latex.el index c4a9ba0..069af5d 100644 --- a/modules/prelude-latex.el +++ b/modules/prelude-latex.el @@ -35,6 +35,11 @@ (prelude-require-packages '(auctex)) (require 'smartparens-latex) +(eval-after-load "company" + '(progn + (prelude-require-packages '(company-auctex)) + (company-auctex-init))) + ;; AUCTeX configuration (setq TeX-auto-save t) (setq TeX-parse-self t) @@ -57,6 +62,7 @@ ("HTML Viewer" "open %o")))) (defun prelude-latex-mode-defaults () + "Default Prelude hook for `LaTeX-mode'." (turn-on-auto-fill) (abbrev-mode +1) (smartparens-mode +1))