Use set-company-backend!

Fixes incorrect usage of setq-local in a global context.
This commit is contained in:
Henrik Lissner 2018-08-13 02:59:38 +02:00 committed by GitHub
parent 2f7282af12
commit f143a03221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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