completion/company: allow minor modes in :company-backend
This commit is contained in:
parent
5743e7da7a
commit
c583a89a15
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ MODES should be one major-mode symbol or a list of them."
|
|||
for def-name = (intern (format "doom--init-company-%s" mode))
|
||||
collect
|
||||
`(defun ,def-name ()
|
||||
(when (and (eq major-mode ',mode)
|
||||
(when (and (or (eq major-mode ',mode)
|
||||
(bound-and-true-p ,mode))
|
||||
,(not (eq backends '(nil))))
|
||||
(require 'company)
|
||||
(make-variable-buffer-local 'company-backends)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue