diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-17 16:12:39 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-17 16:12:39 +0200 |
commit | 9b07c03ef511c71fc118e2637ee3a4af326e7638 (patch) | |
tree | 0778002e735589883499c3b68a9bdd857aca67e7 | |
parent | 439d241023114e7f156887d3d9ee783f24a3979b (diff) | |
parent | 29849284e915075dc9380157e80377ae398541cd (diff) |
complete merge
-rw-r--r-- | org-roam-ui.el | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el index b11e504..0911df4 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -1,15 +1,15 @@ +(require 'f) (require 'json) (require 'simple-httpd) -(defvar org-roam-ui-root - (concat (file-name-directory - (f-full (or - load-file-name - buffer-file-name))) - ".")) +(defvar org-roam-ui/root-dir + (concat + (file-name-directory + (f-full (or + load-file-name + buffer-file-name))) ".")) -(setq org-roam-ui/root-dir (file-name-directory load-file-name)) -(setq org-roam-ui/app-build-dir (expand-file-name "./web-build/" org-roam-ui-root)) +(setq org-roam-ui/app-build-dir (expand-file-name "./web-build/" org-roam-ui/root-dir)) (define-minor-mode org-roam-ui-mode @@ -38,8 +38,6 @@ (insert response) (httpd-send-header t "text/plain" 200 :Access-Control-Allow-Origin "*")))) -(httpd-def-file-servlet app org-roam-ui/app-build-dir) - (defun nodes-row-to-cons (row) (list |