lang/ess: set company backends for ess-r-mode

This commit is contained in:
Henrik Lissner 2020-08-20 02:12:23 -04:00
parent f4ec42ae5c
commit d23d18d7a4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -32,6 +32,9 @@
(set-eval-handler! 'ess-help-mode #'ess-eval-region-and-go) (set-eval-handler! 'ess-help-mode #'ess-eval-region-and-go)
(set-eval-handler! 'ess-r-help-mode #'ess-eval-region-and-go) (set-eval-handler! 'ess-r-help-mode #'ess-eval-region-and-go)
(set-company-backend! 'ess-r-mode
'(company-R-args company-R-objects company-dabbrev-code :separate))
(setq-hook! 'ess-r-mode-hook (setq-hook! 'ess-r-mode-hook
;; HACK Fix #2233: Doom continues comments on RET, but ess-r-mode doesn't ;; HACK Fix #2233: Doom continues comments on RET, but ess-r-mode doesn't
;; have a sane `comment-line-break-function', so... ;; have a sane `comment-line-break-function', so...