Enable auto-completion in Agda layer

This commit is contained in:
Jeremy Bi 2016-10-06 21:42:46 +08:00 committed by Eivind Fonn
parent f4c9cd8871
commit 927cccbd99
2 changed files with 6 additions and 0 deletions

View file

@ -16,3 +16,4 @@ Emacs. If `use-helper', the `agda-mode' executable is used to
find its location.")
(spacemacs|define-jump-handlers agda2-mode agda2-goto-definition-keyboard)
(spacemacs|defvar-company-backends agda2-mode)

View file

@ -11,8 +11,13 @@
(setq agda-packages
'((agda :location local)
company
golden-ratio))
(defun agda/post-init-company ()
(spacemacs|add-company-hook agda2-mode)
(push 'company-capf company-backends-agda2-mode))
(defun agda/init-agda ()
(if (and (eq 'use-helper agda-mode-path)
(not (executable-find "agda-mode")))