doom: kirby-mode

This commit is contained in:
Inhji 2024-03-31 12:37:40 +02:00
parent 08a6919add
commit 02c206dda1
1 changed files with 7 additions and 2 deletions

View File

@ -1,9 +1,14 @@
;;; kirby-mode --- Highlights for kirby content files
;;; Commentary:
;;; Code:
(setq kirby-highlights
'(("^[a-zA-Z\w]*:" . 'font-lock-function-name-face)
("-*" . 'font-lock-constant-face)))
(define-derived-mode kirby-mode fundamental-mode "Kirby"
"major mode for editing Kirby CMS content files."
"Major mode for editing Kirby CMS content files."
(setq font-lock-defaults '(kirby-highlights)))
(provide 'kirby-mode)
;;; kirby-mode.el ends here