I'm new to Spacemacs and Emacs. When I'm editing in web-mode, like an html document, I'm often triggering the autocomplete prompt when I haven't typed anything relevant yet. I don't have this problem in the html blocks, that I remember, but when in script (js) or css blocks it gets pretty cumbersome to have to swat away the menu constantly.
You can see from the above example that I'm editing css and after completing the property definition with a semicolon the autocompletion pops up meaning that hitting semicolon and enter to start the next line will instead add useless text to the line after the semicolon. how can I alter this behaviour?
You can see here again I have almost the same problem when editing inside the script tag. Opening a function definition with a curly brace and hitting enter to go to the next line instead inserts useless text after the brace.
The file I am editing is .svelte, but I've told emacs to use web-mode
My dotspacemacs/user-config has the following:
(add-hook 'text-mode-hook 'turn-on-visual-line-mode)
(add-to-list 'auto-mode-alist '("\\.svelte?\\'" . web-mode))
(setq web-mode-markup-indent-offset 2)
(setq web-mode-css-indent-offset 2)
(setq web-mode-code-indent-offset 2)
(setq configuration-layer--elpa-archives
'(("melpa-cn" . "http://elpa.emacs-china.org/melpa/")
("org-cn" . "http://elpa.emacs-china.org/org/")
("gnu-cn" . "http://elpa.emacs-china.org/gnu/")))
Try adding this to the
dotspacemacs-configuration-layers
section of your spacemacs filespc + fed