summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-10-28 17:41:26 +0200
committerThomas F. K. Jorna <[email protected]>2021-10-28 17:41:26 +0200
commitee870fbf97ad6b96521bc490c219088a5846b570 (patch)
tree43bbd8a537ce2c42cf2a7c344584c47b36b5424d
parentc2158a3327f46fc4a40425d1a8875183241fc081 (diff)
chore(melpa): make function names consistent
-rw-r--r--org-roam-ui.el15
1 files changed, 10 insertions, 5 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el
index a14b4be..2ea3e38 100644
--- a/org-roam-ui.el
+++ b/org-roam-ui.el
@@ -5,7 +5,7 @@
;; author: Kirill Rogovoy, Thomas Jorna
;; URL: https://github.com/org-roam/org-roam-ui
;; Keywords: files outlines
-;; Version: 0
+;; Version: 0.1
;; Package-Requires: ((emacs "27.1") (org-roam "2.0.0") (simple-httpd "20191103.1446") (websocket "20210110.17") (json "1.2"))
;; This file is NOT part of GNU Emacs.
@@ -480,14 +480,14 @@ ROWS is the sql result, while COLUMN-NAMES is the columns to use."
;;;; interactive commands
;;;###autoload
-(defun orui-open ()
+(defun org-roam-ui-open ()
"Ensure `org-roam-ui' is running, then open the `org-roam-ui' webpage."
(interactive)
(or org-roam-ui-mode (org-roam-ui-mode))
(funcall org-roam-ui-browser-function (format "http://localhost:%d" org-roam-ui-port)))
;;;###autoload
-(defun orui-node-zoom (&optional id speed padding)
+(defun org-roam-ui-node-zoom (&optional id speed padding)
"Move the view of the graph to current node.
or optionally a node of your choosing.
Optionally takes three arguments:
@@ -502,7 +502,7 @@ The PADDING around the nodes in the viewport."
;;;###autoload
-(defun orui-node-local (&optional id speed padding)
+(defun org-roam-ui-node-local (&optional id speed padding)
"Open the local graph view of the current node.
Optionally with ID (string), SPEED (number, ms) and PADDING (number, px)."
(interactive)
@@ -512,11 +512,16 @@ Optionally with ID (string), SPEED (number, ms) and PADDING (number, px)."
(message "No node found."))
;;;###autoload
-(defun orui-sync-theme ()
+(defun org-roam-ui-sync-theme ()
"Sync your current Emacs theme with org-roam-ui."
(interactive)
(websocket-send-text org-roam-ui-ws-socket (json-encode `((type . "theme") (data . ,(org-roam-ui--update-theme))))))
+(define-obsolete-function-alias 'orui-open 'org-roam-ui-open "0.1")
+(define-obsolete-function-alias 'orui-node-local 'org-roam-ui-node-local "0.1")
+(define-obsolete-function-alias 'orui-node-zoom 'org-roam-ui-node-zoom "0.1")
+(define-obsolete-function-alias 'orui-sync-theme 'org-roam-ui-sync-theme "0.1")
+
;;;###autoload
(define-minor-mode org-roam-ui-follow-mode
"Set whether ORUI should follow your every move in Emacs."