Merge pull request #838 from patrl/coqTweaks

Company-coq tweaks
This commit is contained in:
Henrik Lissner 2018-08-31 03:32:51 +02:00 committed by GitHub
commit dd2e7c63a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 3 deletions

View file

@ -1,5 +1,4 @@
;;; lang/coq/autoload.el -*- lexical-binding: t; -*-
;;;###if (featurep! :completion company)
;;;###autoload
(add-hook 'coq-mode-hook #'company-coq-mode)

View file

@ -0,0 +1,12 @@
;;; lang/coq/config.el -*- lexical-binding: t; -*-
;; `coq'
(setq proof-electric-terminator-enable t)
(after! company-coq
(set-lookup-handlers! 'company-coq-mode
:definition #'company-coq-jump-to-definition
:references #'company-coq-grep-symbol
:documentation #'company-coq-doc)
(unless (featurep! :completion company)
(setq company-coq-disabled-features '(company company-defaults))))

View file

@ -3,5 +3,4 @@
(package! proof-general :recipe (:fetcher github :repo "ProofGeneral/PG" :files ("*")))
(when (featurep! :completion company)
(package! company-coq))
(package! company-coq)