From fd9001cf4449da2fe7bcafb03d8341b0198e2a51 Mon Sep 17 00:00:00 2001 From: Nicolas Petton Date: Tue, 23 Feb 2021 21:29:31 +0100 Subject: Add missing autoloads --- nroam.el | 18 +++++++++++------- 1 file 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 -- cgit v1.2.3-54-g00ecf