Skip to content

Commit

Permalink
Autoload devil-set-key and devil-describe-key
Browse files Browse the repository at this point in the history
Both of these might be the first function called from the package, so they
might as well autoload it.  With this change, a user is free to call
`devil-set-key` before `global-devil-mode` in their init file.
  • Loading branch information
matta committed Jul 22, 2024
1 parent c2dc9fc commit 431b146
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions devil.el
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ sequence given in VALUE activates Devil."
(define-key devil-mode-map value #'devil)
(devil--log "Keymap updated to %s" devil-mode-map))

;;;###autoload
(defun devil-set-key (key)
"Set `devil-key' to the given KEY and update `devil-mode-map'.
Expand Down Expand Up @@ -312,6 +313,7 @@ locally."
(when translated-key
(devil--set-repeatable-keys (key-description key))))))

;;;###autoload
(defun devil-describe-key ()
"Describe a Devil key sequence."
(interactive)
Expand Down

0 comments on commit 431b146

Please sign in to comment.