diff options
Diffstat (limited to 'lisp/ledger-mode.el')
-rw-r--r-- | lisp/ledger-mode.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/ledger-mode.el b/lisp/ledger-mode.el index 1f6d8c32..94b1f591 100644 --- a/lisp/ledger-mode.el +++ b/lisp/ledger-mode.el @@ -347,14 +347,15 @@ With a prefix argument, remove the effective date. " (if (boundp 'font-lock-defaults) (setq-local font-lock-defaults - '(ledger-font-lock-keywords t t))) + '(ledger-font-lock-keywords t t nil nil + (font-lock-fontify-region-function . ledger-fontify-buffer-part)))) ;; (setq font-lock-extend-region-functions ;; (list #'font-lock-extend-region-wholelines)) ;; (setq font-lock-multiline nil) - (jit-lock-register 'ledger-fontify-buffer-part) - (jit-lock-unregister 'font-lock-fontify-region) + ;(jit-lock-register 'ledger-fontify-buffer-part) + ;(jit-lock-unregister 'font-lock-fontify-region) (setq-local pcomplete-parse-arguments-function 'ledger-parse-arguments) (setq-local pcomplete-command-completion-function 'ledger-complete-at-point) |