From 29849284e915075dc9380157e80377ae398541cd Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Sat, 17 Jul 2021 17:07:42 +0300 Subject: Clear out unused code --- org-roam-ui.el | 18 ++++++++---------- 1 file 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 -- cgit v1.2.3