From be24eae19afeb32641525f898473c6db71b2cc30 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 30 Mar 2021 11:58:05 -0500 Subject: Add autoloads to `:acdw/map' and `:acdw/leader' --- init.el | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 39bb77b..b2236a1 100644 --- a/init.el +++ b/init.el @@ -42,9 +42,11 @@ ;; Bind keys to `acdw/map' (setup-define :acdw/map (lambda (key command) - `(define-key acdw/map - ,(if (stringp key) (kbd key) key) - #',command)) + `(progn + (autoload #',command (symbol-name setup-name)) + (define-key acdw/map + ,(if (stringp key) (kbd key) key) + #',command))) :documentation "Bind KEY to COMMAND in `acdw/map'." :debug '(form sexp) :repeatable t) @@ -52,9 +54,11 @@ ;; Bind keys to `acdw/leader' (setup-define :acdw/leader (lambda (key command) - `(define-key acdw/leader - ,(if (stringp key) (kbd key) key) - #',command)) + `(progn + (autoload #',command (symbol-name setup-name)) + (define-key acdw/leader + ,(if (stringp key) (kbd key) key) + #',command))) :documentation "Bind KEY to COMMAND in `acdw/leader' map." :debug '(form sexp) :repeatable t) -- cgit 1.4.1-21-gabe81