diff options
author | Kyle Meyer <kyle@kyleam.com> | 2018-01-14 00:24:21 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2018-01-20 18:01:14 -0500 |
commit | d73f2e44eb49ad8d14f72835df922a92fd731052 (patch) | |
tree | a2bfdc3e541efecc9a40ddb3cff341ee6be8fa26 | |
parent | 12aa6c4b2832f4349d6d0803785a49928170e2a6 (diff) | |
download | emacs.d-d73f2e44eb49ad8d14f72835df922a92fd731052.tar.gz |
Don't use font lock in ledger mode
-rw-r--r-- | init.el | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1864,6 +1864,18 @@ (setq truncate-lines km/writeroom-old-truncate-lines))) (add-hook 'writeroom-mode-hook #'km/writeroom-setup)) +(use-package ledger-mode + :init + (and (boundp 'font-lock-global-modes) + (pcase font-lock-global-modes + ('t + (setq font-lock-global-modes '(not ledger-mode))) + (`(not . ,_) + (add-to-list 'font-lock-global-modes 'ledger-mode t)) + (`(,_ . ,_) + (setq font-lock-global-modes + (delq 'ledger-mode font-lock-global-modes)))))) + ;;; Language modes |