summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar Nicolas Petton2021-02-23 21:29:31 +0100
committerGravatar Nicolas Petton2021-02-23 21:31:53 +0100
commitfd9001cf4449da2fe7bcafb03d8341b0198e2a51 (patch)
treeb19bfb2c61a1bb91d48ccb725af6cf132b3eee02
parent0273174cf0dcb3c46c5c41172c67c76dd0c94bc8 (diff)
downloadnroam-fd9001cf4449da2fe7bcafb03d8341b0198e2a51.tar.gz
nroam-fd9001cf4449da2fe7bcafb03d8341b0198e2a51.zip
Add missing autoloads
-rw-r--r--nroam.el18
1 files changed, 11 insertions, 7 deletions
diff --git a/nroam.el b/nroam.el
index eb6de91..b3e6242 100644
--- a/nroam.el
+++ b/nroam.el
@@ -70,6 +70,7 @@ Make the region inserted by BODY read-only, and marked with
(define-key map (kbd "RET") #'nroam-return)
map))
+;;;###autoload
(define-minor-mode nroam-mode
"Show nroam sections at the end of org-roam buffers."
:lighter "nroam"
@@ -84,6 +85,7 @@ Make the region inserted by BODY read-only, and marked with
(remove-hook 'after-save-hook #'nroam--update-maybe t)
(nroam--prune)))
+;;;###autoload
(defun nroam-ctrl-c-ctrl-c ()
"Update the sections for the current buffer, or fallback to `org-ctrl-c-ctrl-c'."
(interactive)
@@ -93,6 +95,7 @@ Make the region inserted by BODY read-only, and marked with
#'org-capture-finalize
#'org-ctrl-c-ctrl-c))))
+;;;###autoload
(defun nroam-return ()
"Open nroam link at point, or fallback to `org-return'."
(interactive)
@@ -100,6 +103,14 @@ Make the region inserted by BODY read-only, and marked with
(nroam--follow-link)
(call-interactively #'org-return)))
+;;;###autoload
+(defun nroam-update ()
+ "Update org-roam sections for the current buffer."
+ (interactive)
+ (nroam--setup-markers)
+ (nroam--prune)
+ (nroam--insert))
+
(defun nroam-backlinks-section ()
"Insert org-roam backlinks for the current buffer."
(let* ((backlinks (nroam--get-backlinks))
@@ -122,13 +133,6 @@ Make the region inserted by BODY read-only, and marked with
(end (marker-position nroam-end-marker)))
(<= beg (point) end)))
-(defun nroam-update ()
- "Update org-roam sections for the current buffer."
- (interactive)
- (nroam--setup-markers)
- (nroam--prune)
- (nroam--insert))
-
(defun nroam--update-maybe ()
"Update backlinks when in nroam-mode."
(when nroam-mode