Late expand completion backends in the `spacemacs|add-company-backends` macro

Otherwise, the Haskell layer throws an eager expansion error because
`layers/+lang/haskell/funcs.el`, which calls this macro, is loaded before
`layers/+completion/auto-completion/config.el`, which defines
`spacemacs-default-company-backends`.
This commit is contained in:
Steven Allen 2017-03-19 09:36:59 -07:00 committed by syl20bnr
parent d65cd1ebd9
commit 6b7aa70428
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ Available PROPS:
(mode-hook-name (intern (format "%S-hook" mode))))
;; declare buffer local company-backends variable
(push `(defvar ,backends-var-name
',spacemacs-default-company-backends
spacemacs-default-company-backends
,(format "Company backend list for %S." mode)) result)
;; add backends
(dolist (backend backends)