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?

Grzegorz Rożniecki
  • 27,415
  • 11
  • 90
  • 112
rkk
  • 189
  • 2
  • 11
  • 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 04 '12 at 13:44

3 Answers3

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)
AShelly
  • 34,686
  • 15
  • 91
  • 152
elviejo79
  • 4,592
  • 2
  • 32
  • 35
  • 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 '13 at 04: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` – iainbeeston Apr 11 '13 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)
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)
hbin
  • 2,657
  • 1
  • 23
  • 23