ScottyB / ac-js2

Javascript auto-completion in Emacs using Js2-mode's parser and Skewer-mode.
123 stars 8 forks source link

No drop down menu #20

Closed computersarecool closed 8 years ago

computersarecool commented 9 years ago

Hi, I believe I have this installed just the readme says, but I am still not getting a drop down window when I type a previously-typed function: i.e.

screen shot 2015-04-14 at 8 48 13 pm

I have in my .emacs:

(add-to-list 'auto-mode-alist (cons (rx ".js" eos) 'js2-mode)) 
(add-hook 'js-mode-hook 'ac-js2-mode) 

So I do not know what is wrong. Any ideas?

patapizza commented 9 years ago

You should add ac-js2-mode to the js2-mode-hook, and not to the js-mode-hook:

(add-hook 'js2-mode-hook 'ac-js2-mode)