[PATCH 0/2] Re: [Bug?] Evil does not activate when loaded via customize
Trevor Murphy
trevor.m.murphy at gmail.com
Sat Nov 1 19:40:42 CET 2014
Whoops. I may have accidentally sent half of this email previously.
My apologies for the noise - I'm still learning git-send-email.
On Fri, Oct 31 2014, Frank Fischer wrote:
> I do not know if it is possible to have something like an 'autoload
> variable', i.e. as soon as a variable is customized Evil loads a
> corresponding package. It is possible for functions (like the
> `evil-mode` function), though.
Yup, Emacs' autoload-generating functions can handle this case by
default. The issue, as far as I can see, is that the current codebase
manually configures the autoload cookie for `evil-mode'.
The following patches work for me. Could a few folks test them? The
first patch removes the manual configuration of the ;;;###autoload
cookie on `evil-mode'. I also moved the definition into evil.el, so
the whole package gets loaded when the function is called.
The second patch is pure aesthetics. I removed the manual override to
the `evil-mode' docstring, because the auto-generated one covers the
same content plus additional info that's standard to include with
globalized minor modes.
--
Trevor Murphy, ASA, MAAA
GnuPG Key: 0x83881C0A
More information about the implementations-list
mailing list