From 22f6ecfc21b3899a832e1c24b8c40f41f09e9d25 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Thu, 29 Jul 2021 18:12:35 +0200 Subject: added proper toggle for following --- org-roam-ui.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'org-roam-ui.el') diff --git a/org-roam-ui.el b/org-roam-ui.el index 877a4d6..183902f 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -268,7 +268,7 @@ The padding around the nodes in the viewport." (defun orui-toggle-following () "Set whether ORUI should follow your every move in emacs. Default yes." (interactive) - (if (member #'org-roam-ui--update-current-node post-command-hook) + (if (member #'org-roam-ui--update-current-node (default-value 'post-command-hook)) (progn (remove-hook 'post-command-hook #'org-roam-ui--update-current-node) (message "Org-Roam-UI will now leave you alone.") -- cgit v1.2.3