From dcded86fca731969fece47d57ce90d90e0fe701a Mon Sep 17 00:00:00 2001 From: jao Date: Sun, 5 Jan 2025 15:30:41 +0000 Subject: Revert "Define autoloads how that is normally done" This reverts commit 67f727855895050aca3bcf37066e804dc8f307de. While the rationale is sound, it prevents simpler uses of geiser.el to run the package without having to install it. Fixes #70 --- elisp/geiser.el | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) (limited to 'elisp/geiser.el') diff --git a/elisp/geiser.el b/elisp/geiser.el index 6576ac4..a7aabb9 100644 --- a/elisp/geiser.el +++ b/elisp/geiser.el @@ -51,12 +51,53 @@ ;;; Code: +;;; Locations: ;;;###autoload (defconst geiser-elisp-dir (file-name-directory (or load-file-name buffer-file-name)) "Directory containing Geiser's Elisp files.") + +;;; Autoloads: + +;;;###autoload +(autoload 'geiser-unload "geiser-reload" "Unload all Geiser code." t) + +;;;###autoload +(autoload 'geiser-reload "geiser-reload" "Reload Geiser code." t) + +;;;###autoload +(autoload 'geiser "geiser-repl" "Start a Geiser REPL." t) + +;;;###autoload +(autoload 'run-geiser "geiser-repl" "Start a Geiser REPL." t) + +;;;###autoload +(autoload 'geiser-connect "geiser-repl" + "Start a Geiser REPL connected to a remote server." t) + +;;;###autoload +(autoload 'geiser-connect-local "geiser-repl" + "Start a Geiser REPL connected to a remote server over a Unix-domain socket." + t) + +;;;###autoload +(autoload 'geiser-repl-switch "geiser-repl" + "Switch to a running one Geiser REPL." t) + +;;;###autoload +(autoload 'geiser-mode "geiser-mode" + "Minor mode adding Geiser REPL interaction to Scheme buffers." t) + +;;;###autoload +(autoload 'turn-on-geiser-mode "geiser-mode" + "Enable Geiser's mode (useful in Scheme buffers)." t) + +;;;###autoload +(autoload 'turn-off-geiser-mode "geiser-mode" + "Disable Geiser's mode (useful in Scheme buffers)." t) + (autoload 'geiser-activate-implementation "geiser-impl" "Register the given implementation as active.") @@ -79,5 +120,14 @@ geiser-implementation geiser-xref)) + +;;; Setup: + +;;;###autoload +(autoload 'geiser-mode--maybe-activate "geiser-mode") + +;;;###autoload +(add-hook 'scheme-mode-hook #'geiser-mode--maybe-activate) + (provide 'geiser) ;;; geiser.el ends here -- cgit v1.2.3