-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optionally load evil-integration.el #993
Conversation
I think that it would be much preferable to split the files into one with keybindings and one with everything else (or to further split everything else, but I think the main thing most people would want to disable is only the keybindings). See my comment in #992. I don't think everyone would agree on what is "basic" (for example, I'd include the advice and setting of evil command properties). |
Sigh. I don't want to split up anything at all. |
For one, yes, I'd like evil not to load these keybindings by default, so I'd welcome a split too. Right now I have to use (are these easy to find for an evil newcomer? I think no): ;; don't let modes override any states (!)
(setq evil-overriding-maps nil
evil-intercept-maps nil
evil-pending-intercept-maps nil
evil-pending-overriding-maps nil)
;; subvert evil-operation.el overrides (dired, ibuffer etc.)
(advice-add 'evil-make-overriding-map :override #'ignore)
(advice-add 'evil-make-intercept-map :override #'ignore)
(advice-add 'evil-add-hjkl-bindings :override #'ignore) ... so it would be much more "natural" to not have to apply such workarounds. |
I'm fine making evil-integration optional. Strongly agree with @wasamasa, let's not split it. |
Providing a setting to not load Why don't you want to split it? |
See the linked ticket. |
fe78b39
to
5ceb25d
Compare
OK, this PR is now modified - it only adds the option to load evil-integration.el optionally. The generation of the .depend file is also tweaked. |
Makefile
Outdated
@@ -20,7 +20,7 @@ compile: $(ELCFILES) | |||
@echo Compute dependencies | |||
@rm -f .depend | |||
@for f in $(FILES); do \ | |||
sed -n "s/(require '\(evil-.*\))/$${f}c: \1.elc/p" $$f >> .depend;\ | |||
sed -n "s/[^(]*(require '\(evil-[^)]*\).*)/$${f}c: \1.elc/p" $$f >> .depend;\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems somewhat broad, can't you just allow leading space in front of (require 'evil-...)
?
ab22283
to
7fc4cc4
Compare
Sure, the commit is now amended - only spaces are allowed in front on the |
Thanks! |
This is a WIP PR as a result of #992
I haven't self-tested thoroughly yet. Plus, there's an issue with the generation of
.depend
which is currently worked-around like so:Edit: the workaround is is now removed.
Any suggestions for improvements are welcome.