mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
feat(beancount): highlight custom directives
Doesn't seem to be done by beancount-mode, so...
This commit is contained in:
@ -34,6 +34,14 @@ behavior).")
|
||||
|
||||
(setq beancount-electric-currency t)
|
||||
|
||||
;; Fontify custom directives.
|
||||
;; REVIEW: PR this upstream.
|
||||
(add-to-list 'beancount-font-lock-keywords
|
||||
`(,(concat "^\\(" beancount-date-regexp "\\) +"
|
||||
"\\(" (regexp-opt '("custom")) "\\) +")
|
||||
(1 'beancount-date)
|
||||
(2 'beancount-directive)))
|
||||
|
||||
(when (modulep! +lsp)
|
||||
(add-hook 'beancount-mode-local-vars-hook #'lsp! 'append))
|
||||
|
||||
|
Reference in New Issue
Block a user