Emacs autocomplete error: character value as variable is empty: ac-modes

I am trying to install emacs latex full-fill package (http://code.google.com/p/ac-math/). I placed ac-math.el in the ~ / elisp load-path directory and then placed the following in my .emacs file:

;; Adds elisp to load-path (add-to-list 'load-path "~/elisp") ;; Loads latex auto-complete (require 'ac-math) (add-to-list 'ac-modes 'latex-mode) (defun ac-latex-mode-setup () (setq ac-sources (append '(ac-source-math-latex ac-source-latex-commands ac-source-math-unicode) ac-sources)) ) (add-hook 'LaTeX-mode-hook 'ac-latex-mode-setup) 

But when I load emacs, I get this error:

Warning (initialization): `/home/eddy/.emacs' error occurred during boot:

The value of the character as a variable is empty: ac-modes

To ensure proper operation, you must examine and remove the cause of the error in the initialization file. Launch Emacs with `--debug-init 'to see the full error.

Thanks in advance

+6
source share
2 answers

First I needed to install an autocomplete package. I messed up the math auto-complete package with the actual auto-kit.

So, first you will go here to install the autocomplete package: http://cx4a.org/software/auto-complete/

You will then be redirected here to mathematically automatically populate the add-in: http://code.google.com/p/ac-math/

The problem was that I tried to install the math add-on without first installing the autocomplete package

+2
source

Add (require 'auto-complete) at the top. Or, better yet, convince the accompanying ac-math package to add it there.

+13
source

Source: https://habr.com/ru/post/895487/


All Articles