summaryrefslogtreecommitdiff
path: root/bog.el
diff options
context:
space:
mode:
authorBasil L. Contovounesios <contovob@tcd.ie>2020-06-25 14:49:41 +0100
committerBasil L. Contovounesios <contovob@tcd.ie>2020-06-25 15:14:16 +0100
commit03dbdd2644e680cc6a1aeb6fc6f48f155a6d38fe (patch)
tree175f0f3433d16b2869bf205aa55aaba02ff9b3ed /bog.el
parent30fc844a24954601ff3294a43c89f2407760e024 (diff)
downloadbog-03dbdd2644e680cc6a1aeb6fc6f48f155a6d38fe.tar.gz
bog-mode: Modify org-font-lock-hook buffer-locally
Diffstat (limited to 'bog.el')
-rw-r--r--bog.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/bog.el b/bog.el
index f36e41b..7a58f19 100644
--- a/bog.el
+++ b/bog.el
@@ -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))))