I just install auto-complete-mode, however everytime I start emacs I have to M-x auto-complete-mode. Is there anyway to have it loaded automatically ?
My .emacs is as follows:
;; auto-complete
(add-to-list 'load-path "~/.emacs.d/")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d//ac-dict")
(ac-config-default)
Thanks
I think you can do it in various ways. To enable it globally you should use
But it uses auto-complete-mode-maybe, which turn AC on only those listed in
ac-modes
. You can add them manually just like thisYou can make your own list if you wish AC be active only for few modes
Or rewrite it to have AC everywhere.
edited:
Autocomplete in minibuffer is bad. I think this will be better.
I just needed this:
added to my .emacs.d/init.el file.
I installed auto-complete with the package manager. I'm using Emacs 24.