lang/agda: load agda2 if +local #2203

This commit is contained in:
Henrik Lissner 2019-12-18 10:12:41 -05:00
parent 74d4e120c1
commit c483a7f7bd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -3,7 +3,9 @@
(when (and (featurep! +local) (when (and (featurep! +local)
(executable-find "agda-mode")) (executable-find "agda-mode"))
(add-load-path! (add-load-path!
(file-name-directory (shell-command-to-string "agda-mode locate")))) (file-name-directory (shell-command-to-string "agda-mode locate")))
(unless (require 'agda2 nil t)
(message "Failed to find the `agda2' package")))
(map! :after agda2-mode (map! :after agda2-mode