More syntax highlighting

This commit is contained in:
Patrick Elliott 2018-09-03 16:00:40 +02:00
parent 17f0b4c50e
commit 57415658a0
No known key found for this signature in database
GPG key ID: 7CA109C3974AF5FA

View file

@ -11,8 +11,7 @@
:mode "\\.agda\\'" :mode "\\.agda\\'"
:after agda-input :after agda-input
:init :init
;; fix syntax highlighting ;; make syntax-highlighting more consistent with other major modes
;; (taken from https://github.com/syl20bnr/spacemacs/blob/develop/layers/%2Blang/agda/packages.el)
(progn (progn
(mapc (mapc
(lambda (x) (add-to-list 'face-remapping-alist x)) (lambda (x) (add-to-list 'face-remapping-alist x))
@ -32,7 +31,14 @@
(agda2-highlight-primitive-face . font-lock-type-face) (agda2-highlight-primitive-face . font-lock-type-face)
(agda2-highlight-macro-face . font-lock-function-name-face) (agda2-highlight-macro-face . font-lock-function-name-face)
(agda2-highlight-record-face . font-lock-type-face) (agda2-highlight-record-face . font-lock-type-face)
(agda2-highlight-error-face . font-lock-warning-face)))) (agda2-highlight-error-face . font-lock-warning-face)
(agda2-highlight-dotted-face . font-lock-variable-name-face)
(agda2-highlight-unsolved-meta-face . font-lock-warning-face)
(agda2-highlight-unsolved-constraint-face . font-lock-warning-face)
(agda2-highlight-termination-problem-face . font-lock-warning-face)
(agda2-highlight-positivity-problem-face . font-lock-warning-face)
(agda2-highlight-incomplete-pattern-face . font-lock-warning-face)
(agda2-highlight-typechecks-face . font-lock-warning-face))))
:config :config
(map! :map agda2-mode-map (map! :map agda2-mode-map
:localleader :localleader