From 37248aa86346505fbf10d36fbb872527936c91c7 Mon Sep 17 00:00:00 2001 From: John Kitchin Date: Fri, 30 Jan 2015 10:06:26 -0500 Subject: [PATCH] polish order of operations --- org-ref.org | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/org-ref.org b/org-ref.org index a266e57..06b89b3 100644 --- a/org-ref.org +++ b/org-ref.org @@ -284,11 +284,6 @@ Here we setup code that shows you a context message for the element under the cu "Variable to store the link message timer in.") -(when org-ref-show-citation-on-enter - (setq org-ref-message-timer - (run-with-idle-timer 0.5 t 'org-ref-link-message))) - - (defun org-ref-show-link-messages () "Turn on link messages. You will see a message in the minibuffer when on a cite, ref or label link." @@ -304,6 +299,10 @@ minibuffer when on a cite, ref or label link." (cancel-timer org-ref-message-timer) (setq org-ref-message-timer nil)) + +(when org-ref-show-citation-on-enter + (org-ref-show-link-messages)) + ;; this approach caused the selected region to not be highlighted any more. ; (add-hook 'post-command-hook 'org-ref-link-message)) ; (remove-hook 'post-command-hook 'org-ref-link-message)) -- 2.39.2