From 3414fee4a29a797841155a4cd89d368bccba82c8 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Fri, 6 Aug 2021 03:22:19 +0200 Subject: feature: warning when people are not using proper org-roam --- org-roam-ui.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'org-roam-ui.el') 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) -- cgit v1.2.3