Skip to content

Commit

Permalink
auto-compile-mode: Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Mar 11, 2024
1 parent 970b3e7 commit e8477c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto-compile.el
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ variant `auto-compile-on-save-mode'. Also see the related
:group 'auto-compile
(unless (derived-mode-p 'emacs-lisp-mode)
(setq auto-compile-mode nil)
(user-error "This mode only makes sense with emacs-lisp-mode"))
(user-error "`auto-comile-mode' only makes sense in `emacs-lisp-mode'"))
(if auto-compile-mode
(add-hook 'after-save-hook #'auto-compile-byte-compile nil t)
(remove-hook 'after-save-hook #'auto-compile-byte-compile t)))
Expand Down

0 comments on commit e8477c5

Please sign in to comment.