victorteokw / ac-html

Emacs auto complete source for html.
22 stars 9 forks source link

html isn't auto completing (probably user error?) #35

Open chadhs opened 8 years ago

chadhs commented 8 years ago

i'm wondering what i'm doing wrong to get ac-html to work for me with html files. i'd love to add to the wiki/docs if i can figure out where i went wrong. thanks!

here's my configuration:

(defun setup-ac-for-html ()
  (require 'ac-html)
  (require 'ac-html-default-data-provider)
  (ac-html-enable-data-provider 'ac-html-default-data-provider)
  (ac-html-setup)
  (setq ac-sources '(ac-source-html-tag
                     ac-source-html-attr
                     ac-source-html-attrv)))
(add-hook 'html-mode-hook 'setup-ac-for-html)