diff options
author | Kirill Rogovoy <[email protected]> | 2021-07-17 17:07:42 +0300 |
---|---|---|
committer | Kirill Rogovoy <[email protected]> | 2021-07-17 17:07:42 +0300 |
commit | 29849284e915075dc9380157e80377ae398541cd (patch) | |
tree | 37c5826f33f24471505684a639419c6b1834cda4 /org-roam-ui.el | |
parent | c8b850133a9acf63f421da4643da07d7cfaa7f98 (diff) |
Clear out unused code
Diffstat (limited to 'org-roam-ui.el')
-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 |