Hello, emacs fellas.
I’m trying to set up emacs for webdev and I cannot get good completions for html and css. I have installed lsp-mode
and html-ls
along with css-ls
, but completions are still rather poor compared to VSCode.
Is there a way to get better autocomplete?
What are you missing? VSCode may include Emmet by default, for example, but in Emacs you would have to install and configure either a minor mode or a language server.
But I’m not using any language servers for webdev. I found the built-in completion-at-point perfectly adequate in CSS-mode. For HTML, I use nxml-mode with html5-schema-0.1. Just typing
I discovered that yes, VSCode has Emmet by default,
lsp-mode
in emacs has support foremmet-ls
but it does not seem to work that much at all.