Enable auto-completion in Agda layer
This commit is contained in:
parent
f4c9cd8871
commit
927cccbd99
|
@ -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)
|
||||
|
|
|
@ -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")))
|
||||
|
|
Loading…
Reference in a new issue