I’ve recently switched to Spacemacs and am having a problem setting up autocompletion feature in it. I read through documentation for emacs elm-mode, and a few blog posts about it, but couldn’t figure it out.
If someone could show his/her working .spacemacs
setup, I’d be really grateful.
Here’s some relevant settings I have:
dotspacemacs-configuration-layers
'(
;; ----------------------------------------------------------------
;; Example of useful layers you may want to use right away.
;; Uncomment some layer names and press (Vim style) or
;; (Emacs style) to install them.
;; ----------------------------------------------------------------
helm
(auto-completion :variables
auto-completion-enable-help-tooltip t
auto-completion-enable-snippets-in-popup t)
better-defaults
emacs-lisp
git
markdown
org
(shell :variables
shell-default-height 30
shell-default-position 'bottom)
spell-checking
(syntax-checking :variables
syntax-checking-enable-tooltips nil)
version-control
(elm :variables
elm-sort-imports-on-save t
elm-format-on-save t
)
javascript
elixir
html
haskell
(defun dotspacemacs/user-config ()
“Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration.
This is the place where most of your configurations should be done. Unless it is
explicitly specified that a variable should be set before a package is loaded,
you should place your code here.”
(with-eval-after-load 'company
(add-to-list 'company-backends 'company-elm))
)
Here’s a link to the full contents of my .spacemacs file.