I'm running GNU Emacs 24.4.1 on a clean install of Debian 8.1. I've installed auto-complete using the package manager. It is installed and if I type
M-x auto-complete-mode I get a working auto-complete. I would like to have it enabled by default. I added the following to my .emacs file:
(require 'auto-complete) (global-auto-complete-mode t)
However, that resulted in the error:
Warning (initialization): An error occurred while loading `/home/greg/.emacs': File error: Cannot open load file, no such file or directory, auto-complete
So, I tried adding to the load path with a bunch of different attempts like:
(add-to-list 'load-path' ("~/.emacs.d/elpa/")
(add-to-list 'load-path (file-name-as-directory (expand-file-name "~/.emacs.d/elpa/auto-complete-20151211.227/auto-complete")) )
But nothing seems to do the trick. If I use
C-h v load-path when I run emacs with
--debug-init, I can see what I've added to the load path, but even when it looks correctly I still get the same can't load file error.
I've read other similar questions but these are all the things their answers said to try and I still can't get it to work. How do I get auto-complete to load automatically?