summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-08-06 03:22:19 +0200
committerThomas F. K. Jorna <[email protected]>2021-08-06 03:22:19 +0200
commit3414fee4a29a797841155a4cd89d368bccba82c8 (patch)
tree4346d28ec2453100744d4de2260a0a1a68f5206f
parentb92b006e2c22302e708672de97b9a05081ecca1c (diff)
feature: warning when people are not using proper org-roam
-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)