[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Customizable modes and package.el
From: |
Sebastian Wiesner |
Subject: |
Customizable modes and package.el |
Date: |
Sat, 28 Mar 2015 09:58:02 +0100 |
Hello,
I have a globalized minor mode defined as follows:
(define-globalized-minor-mode global-flycheck-mode flycheck-mode
flycheck-mode-on-safe
:init-value nil
:group 'flycheck
:require 'flycheck)
If my understanding is correct, users should now be able to enable
"global-flycheck-mode" through the customize interface, shouldn't
they? After all, I can see the mode in customize, enable it, and
Emacs writes the following form to my init file:
(custom-set-variables
...
'(global-flycheck-mode t nil (flycheck))
...
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.
What did I do wrong?
Greetings,
Sebastian
- Customizable modes and package.el,
Sebastian Wiesner <=
- Re: Customizable modes and package.el, Philipp Stephani, 2015/03/28
- Re: Customizable modes and package.el, Stefan Monnier, 2015/03/28
- Re: Customizable modes and package.el, Sebastian Wiesner, 2015/03/28
- Re: Customizable modes and package.el, Artur Malabarba, 2015/03/28
- Re: Customizable modes and package.el, Stefan Monnier, 2015/03/28
- Re: Customizable modes and package.el, Artur Malabarba, 2015/03/29
- Re: Customizable modes and package.el, Stefan Monnier, 2015/03/29
- Re: Customizable modes and package.el, Artur Malabarba, 2015/03/30
- Re: Customizable modes and package.el, Stefan Monnier, 2015/03/30
- Re: Customizable modes and package.el, Artur Malabarba, 2015/03/30