summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--org-roam-ui.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el
index 655b643..9cf6a37 100644
--- a/org-roam-ui.el
+++ b/org-roam-ui.el
@@ -121,6 +121,12 @@ This serves the web-build and API over HTTP."
:global t
:group 'org-roam-ui
:init-value nil
+ (if (fboundp #'org-roam-version)
+ (unless (eq (seq-first (org-roam-version)) 50)
+ (message "You are running org-roam %s. Org-roam-ui is only compatible with v2, please upgrade." (org-roam-version))
+ (setq org-roam-ui-mode -1))
+ (message "Org-roam is either not installed or not running. Please fix this.")
+ (setq org-roam-ui-mode -1)))
(cond
(org-roam-ui-mode
(setq-local httpd-port org-roam-ui-port)