I have seen the use of ;;;###autoload
when defining minor modes. Why do some modes define foo-enable
and foo-disable
, and could be the purpose of ;;;###autoload
before all of them ?
;;;###autoload
(define-minor-mode foo-minor-mode
"Enhances visibility of heading levels and text emphasis."
:lighter " Foo"
(do-this)
(do-that)
)
;;;###autoload
(defun foo-enable ()
"Enables `foo-minor-mode'."
(foo-minor-mode 1))
;;;###autoload
(defun foo-disable ()
"Disables `foo-minor-mode'."
(foo-minor-mode 0))