tweak(mu4e): autoload +mu4e-lock-available

+mu4e-lock-available seems like a potential entry-point to the mu-lock
functionality, e.g. on startup check if another Emacs process has mu4e
active, and so it might as well be turned into an autoload.
This commit is contained in:
TEC 2022-09-20 22:05:46 +08:00 committed by Henrik Lissner
parent 4d9ea6853b
commit f6bddc8fe2

View file

@ -26,6 +26,7 @@
(cons pid process) (cons pid process)
(delete-file +mu4e-lock-file) nil)))) (delete-file +mu4e-lock-file) nil))))
;;;###autoload
(defun +mu4e-lock-available (&optional strict) (defun +mu4e-lock-available (&optional strict)
"If the `+mu4e-lock-file' is available (unset or owned by this emacs) return t. "If the `+mu4e-lock-file' is available (unset or owned by this emacs) return t.
If STRICT only accept an unset lock file." If STRICT only accept an unset lock file."