lang/coq: move config.el to autoload.el

The auto-mode-alist entry for coq-mode and friends are already added by proof-general's autoloads file, and neither coq-mode nor company-coq-mode belong to proof-site specifically, so they shouldn't be treated like they are (this could cause autoloading errors).

The `def-package!` block altogether is unnecessary. The only thing we need is to enable `company-coq-mode` on coq-mode-hook. However, having a one-line config.el is a tad excessive, so we put it in autoload.el instead.
This commit is contained in:
Henrik Lissner 2018-08-18 23:45:36 +02:00 committed by GitHub
parent 6393ebe16b
commit 48c531e76c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

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

View File

@ -1,5 +0,0 @@
;;; lang/coq/config.el -*- lexical-binding: t; -*-
(def-package! proof-site
:mode ("\\.v\\'" . coq-mode)
:hook (coq-mode . company-coq-mode))