Company-capf needs to be the first

This commit is contained in:
Marcelo dos Santos 2018-08-12 13:13:25 -03:00
parent 69e992e54a
commit 36ac08f3fa

View file

@ -5,8 +5,6 @@
:config
(set-popup-rule! "^\\*Racket REPL" :size 10 :select t)
(set-repl-handler! 'racket-mode #'+racket/repl)
(set-company-backend! 'racket-mode
'(company-abbrev company-dabbrev-code company-dabbrev company-files))
(set-lookup-handlers! 'racket-mode
:definition #'racket-describe
:documentation #'racket-doc)
@ -19,6 +17,14 @@
:symbols '(("#true" "#false")))
(setq racket-smart-open-bracket-enable t)
(when (featurep! :completion company)
(setq-local company-backends
'(company-capf
company-abbrev
company-dabbrev-code
company-dabbrev
company-files
company-yasnippet)))
(add-hook! racket-mode
#'(;; 3rd-party functionality