diff options
author | Thanos Apollo <[email protected]> | 2024-12-17 05:33:22 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-12-17 05:33:22 +0200 |
commit | cea3f7ec73dc3e6dc996acd116cc4e940718ba59 (patch) | |
tree | b51565a6484d80260816985a590ac2e48bb19a0a | |
parent | d1ef43dd7567228207732e5a4ce0c6f9475fca28 (diff) |
Add org-roam-ui-root-dir.
* Root directory of the org-roam-ui project.
-rw-r--r-- | org-roam-ui.el | 18 |
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.") |