From 6743b558717e9056ea4fdd597487c5d8821d5746 Mon Sep 17 00:00:00 2001 From: "Marcel Kapfer (mmk2410)" Date: Wed, 11 Jan 2017 11:24:17 +0100 Subject: [PATCH] Merged emacs --- emacs.el | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 6c1f409..1c90d2b 100644 --- a/emacs.el +++ b/emacs.el @@ -68,7 +68,7 @@ '(inhibit-startup-screen t) '(package-selected-packages (quote - (fish-mode hugo mips-mode stumpwm-mode slime muttrc-mode diff-hl magit wanderlust ## auctex yaml-mode typescript sass-mode php-mode outlined-elisp-mode monokai-theme markdown-mode fill-column-indicator edit-server dracula-theme dart-mode coffee-mode auto-complete atom-one-dark-theme atom-dark-theme))) + (gruvbox-theme ac-math fish-mode hugo mips-mode stumpwm-mode slime muttrc-mode diff-hl magit wanderlust ## auctex yaml-mode typescript sass-mode php-mode outlined-elisp-mode monokai-theme markdown-mode fill-column-indicator edit-server dracula-theme dart-mode coffee-mode auto-complete atom-one-dark-theme atom-dark-theme))) '(send-mail-function (quote smtpmail-send-it))) (custom-set-faces ;; custom-set-faces was added by Custom. @@ -129,4 +129,14 @@ (lambda () (shell-command "stumpish 'eval (stumpwm::return-es-called-win stumpwm::*es-win*)'")))) +;; ac-math + +(add-to-list 'ac-modes 'latex-mode) + +(defun ac-latex-mode-setup () + (setq ac-sources + (append '(ac-source-math-unicode ac-source-math-latex ac-source-latex-commands) + ac-sources))) + +(add-hook 'TeX-mode-hook 'ac-latex-mode-setup)