From cea3f7ec73dc3e6dc996acd116cc4e940718ba59 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 17 Dec 2024 05:33:22 +0200 Subject: Add org-roam-ui-root-dir. * Root directory of the org-roam-ui project. --- org-roam-ui.el | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'org-roam-ui.el') 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.") -- cgit v1.2.3