Skip to content

Commit b3d03bf

Browse files
committed
added company-elisp backend for elisp
1 parent 3d57915 commit b3d03bf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lisp/init-company.el

+8
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,14 @@
188188
'(:with company-yasnippet))))
189189
(setq company-backends (mapcar #'company-mode/backend-with-yas company-backends))
190190

191+
;; Add `company-elisp' backend for elisp,
192+
(add-hook 'emacs-lisp-mode-hook
193+
(lambda ()
194+
(require 'company-elisp)
195+
(unless (memq 'company-elisp company-backends)
196+
(push 'company-elisp company-backends))))
197+
198+
191199
;; set the backends for writing in text related mode
192200
(defun my-company-backends-text-mode-hook ()
193201
(setq-local company-backends '(

0 commit comments

Comments
 (0)