8

I'm new to Emacs and the version is 24.

As mentioned in the title, I've installed auto-complete by M-x package-install from Marmalade-repo, and the files lies in ~/.emacs.d/elpa/auto-complete-1.4/.

Then I turned Emacs off and opened a new frame, but nothing happens when coding.

Do I need some configuration to make it run?

1
  • 3
    I have the same problem. Apparently auto-complete-mode does not get loaded. I have to enter (require 'auto-complete) in order to turn it on, and if I had this code to my .emacs it does not run.
    – Pedro Rolo
    Nov 4, 2012 at 13:44

3 Answers 3

4

I had this same issue. I fixed it by appending this to my .emacs

/auto-complete/manual.html#Manual_Installation

(add-to-list 'ac-dictionary-directories "~/.emacs.d/dict")
(require 'auto-complete-config)
(ac-config-default)
2
  • or, of course, something like "~/.emacs.d/elpa/auto-complete-1.4/dict". and (require 'auto-complete-config) may need to come first.
    – danneu
    Mar 21, 2013 at 4:59
  • 1
    I think the first line (add-to-list) is not needed - after installing auto-complete from marmalade, when I check the value of ac-dictionary-directories (using C-h v) it already has ~/.emacs.d/elpa/auto-complete-1.4/dict Apr 11, 2013 at 22:45
1

I had a similar problem. I tried what was suggested in the docs (and by elviejo), but that didn't work. I then tried to do what Pedro suggested, which did work :-) The code added to my init.el file is:

(require 'auto-complete)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict")
(require 'auto-complete-config)
(ac-config-default)
2
  • (require 'auto-complete) appeared to be mandatory on OS X with Emacs 24 Jan 4, 2014 at 20:12
  • @Geradlus_RU it appeared to NOT be mandatory on OSX with emacs 24 for me Sep 16, 2014 at 15:09
0

I installed the Auto-Complete which hosted on the github repo. But the installation should resemble that installed by Package.

It seems that u forgot to turn the auto-complete-mode on. Add follow fragment to your .emacs.d file and have a try.

(ac-config-default)
1
  • 2
    ~/.emacs or ~/.emacs.d/init.el
    – hbin
    Aug 28, 2012 at 15:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.