Fix max-lisp-eval-depth in :company-backend #115
Mode was inadvertantly run like a function in the :company-backend setting macro.
This commit is contained in:
parent
54d8e7fe27
commit
14e69ca830
1 changed files with 2 additions and 2 deletions
|
@ -8,9 +8,9 @@
|
||||||
(mapconcat #'symbol-name modes "-")))))
|
(mapconcat #'symbol-name modes "-")))))
|
||||||
`(prog1
|
`(prog1
|
||||||
(defun ,def-name ()
|
(defun ,def-name ()
|
||||||
(when (memq major-mode ,modes)
|
(when (memq major-mode ',modes)
|
||||||
(require 'company)
|
(require 'company)
|
||||||
(cl-pushnew ,backends company-backends :test #'equal)))
|
(cl-pushnew ',backends company-backends :test #'equal)))
|
||||||
(add-hook! ,modes #',def-name))))
|
(add-hook! ,modes #',def-name))))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue