diff options
author | Basil L. Contovounesios <contovob@tcd.ie> | 2020-06-25 14:49:41 +0100 |
---|---|---|
committer | Basil L. Contovounesios <contovob@tcd.ie> | 2020-06-25 15:14:16 +0100 |
commit | 03dbdd2644e680cc6a1aeb6fc6f48f155a6d38fe (patch) | |
tree | 175f0f3433d16b2869bf205aa55aaba02ff9b3ed | |
parent | 30fc844a24954601ff3294a43c89f2407760e024 (diff) | |
download | bog-03dbdd2644e680cc6a1aeb6fc6f48f155a6d38fe.tar.gz |
bog-mode: Modify org-font-lock-hook buffer-locally
-rw-r--r-- | bog.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1436,11 +1436,11 @@ if ARG is omitted or nil. (cond (bog-mode (if (derived-mode-p 'org-mode) - (add-hook 'org-font-lock-hook #'bog-fontify-non-heading-citekeys) + (add-hook 'org-font-lock-hook #'bog-fontify-non-heading-citekeys nil t) (font-lock-add-keywords nil bog-citekey-font-lock-keywords))) (t (if (derived-mode-p 'org-mode) - (remove-hook 'org-font-lock-hook #'bog-fontify-non-heading-citekeys) + (remove-hook 'org-font-lock-hook #'bog-fontify-non-heading-citekeys t) (font-lock-remove-keywords nil bog-citekey-font-lock-keywords)) (when (bound-and-true-p bog-view-mode) (bog-view-mode -1)))) |