Am new to Emacs and am using Spacemacs, Emacs mode. After following the basic Emacs tutorial, I create an html file and try to use emacs for code editing. So I installed the html layer, after activating emmet-mode, it still stuck at web-mode. And I got any autocompletion. Like typing :.my-class
+ TAB don't generate any code.
Add a comment
|
1 Answer
You need to enable/configure auto-completion
mode perhaps?
-
I just check this but auto-completion is already enabled :/ Commented May 25, 2016 at 15:24
-
2
web-mode
should aromatically enableemmet
, if I am not mistaken. At least I did not add anything special, aside from my emmet configuration. Try this: restart emacs.M-m
orspace
depending on edit mode, thenf
->J
, then enter HTML as extension. Then try from scratch.– MaDhAt2rCommented May 25, 2016 at 18:28 -
Also, what engine are you using for autocomplete, company (suggested) or auto-complete? And did you enable it globally?
(global-company-mode)
in thedotspacemacs/user-config
?– MaDhAt2rCommented May 25, 2016 at 18:32 -
I found out that i needed to hit
Ctrl-j
to make it works. :) Commented May 31, 2016 at 5:51