So I can't get Auto-Complete to work for JavaScript. I've tried a variety of solutions but nothing seems to be working. Here is the relevant code snippet:

;;adds js2-mode for javascript autocompletion
(add-to-list 'load-path "~/.emacs-config/js2-mode")
(require 'js2-mode)
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))

;;adds auto complete
;Load the default configuration
(add-to-list 'load-path "~/.emacs-config/auto-complete")
(require 'auto-complete-config)
; Make sure we can find the dictionaries
(add-to-list 'ac-dictionary-directories "~/.emacs-config/auto-complete/dict")
; Use dictionaries by default
(dolist (m '(js2-mode))
  (add-to-list 'ac-modes m))
;Start auto-completion after 2 characters of a word
(setq ac-auto-start 2)
; case sensitivity is important when finding matches
(setq ac-ignore-case nil)

Also, I install and manage all of my packages manually with Git, and I am on Emacs 24.5.1 and running spacemacs. Anyone have any insight into this issue?

1 Answer 1


You still need an auto-complete source, do you not?

You could try ac-js2. Please note that I have not tried this.

Also see this question

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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