diff --git a/modules/lang/beancount/config.el b/modules/lang/beancount/config.el index c72ff6e07..c3e77e7c7 100644 --- a/modules/lang/beancount/config.el +++ b/modules/lang/beancount/config.el @@ -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))