From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani
Hello,
I have a globalized minor mode defined as follows:
(define-globalized-minor-mode global-flycheck-mode flycheck-mode
=C2=A0 flycheck-mode-on-safe
=C2=A0 :init-value nil
=C2=A0 :group 'flycheck
=C2=A0 :require 'flycheck)
If my understanding is correct, users should now be able to enable
"global-flycheck-mode" through the customize interface, shouldn= 39;t
they?=C2=A0 After all, I can see the mode in customize, enable it, and
Emacs writes the following form to my init file:
(custom-set-variables
...
=C2=A0'(global-flycheck-mode t nil (flycheck))
=C2=A0...
Now, my users usually install my package via ELPA, and by default,
ELPA packages do not become available until *after* the init file was
loaded.
Consequently, the above form fails to load, since customize tries to
load a library which isn't available yet. I read the documentation on customize again, but I didn't find anything related to package.el at
all.