summaryrefslogtreecommitdiff
path: root/org-roam-ui.el
diff options
context:
space:
mode:
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r--org-roam-ui.el18
1 files changed, 17 insertions, 1 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el
index 07e276b..b642fb0 100644
--- a/org-roam-ui.el
+++ b/org-roam-ui.el
@@ -31,12 +31,16 @@
;; within Org-roam.
;;
;;; Code:
+
+;; (use-package simple-httpd
+;; :vc (:url "https://github.com/skeeto/emacs-web-server/"))
+
;;;; Dependencies
(require 'json)
(require 'simple-httpd)
(require 'org-roam)
(require 'websocket)
-(require 'org-roam-dailies)
+;; (require 'org-roam-dailies)
(defgroup org-roam-ui nil
"UI in Org-roam."
@@ -167,6 +171,18 @@ Format as, i.e. with double backslashes for a single backslash:
;; Internal vars
+(defvar org-roam-ui-root-dir
+ (concat (file-name-directory
+ (expand-file-name (or
+ load-file-name
+ buffer-file-name)))
+ ".")
+ "Root directory of the org-roam-ui project.")
+
+(defvar org-roam-ui-app-build-dir
+ (expand-file-name "./out/" org-roam-ui-root-dir)
+ "Directory containing org-roam-ui's web build.")
+
(defvar org-roam-ui--ws-current-node nil
"Var to keep track of which node you are looking at.")