mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
More syntax highlighting
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user