-
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
[Request] Make evil-integration optional #992
Comments
I can submit a PR to make loading of evil-integration.el optional. @jojojames what do you meen extra keybindings? Are you suggesting we split evil-integration into two parts and make loading of one of them optional? Here's a patch which introduces a new variable diff --git a/evil-vars.el b/evil-vars.el
index 899aab5..8870b47 100644
--- a/evil-vars.el
+++ b/evil-vars.el
@@ -1853,6 +1853,11 @@ Otherwise the previous command is assumed as substitute.")
"1.2.13"))))
"The current version of Evil")
+(defcustom evil-want-integration t
+ "Whether to load evil-integration.el"
+ :type 'boolean
+ :group 'evil)
+
(defun evil-version ()
(interactive)
(message "Evil version %s" evil-version))
diff --git a/evil.el b/evil.el
index 01b9bc1..5c9e54a 100644
--- a/evil.el
+++ b/evil.el
@@ -137,7 +137,9 @@
(require 'evil-commands)
(require 'evil-jumps)
(require 'evil-maps)
-(require 'evil-integration)
+
+(when evil-want-integration
+ (require 'evil-integration))
(run-hooks 'evil-after-load-hook) |
There's quite a few useful functionality in evil-integration. The ones that are not so useful (potentially) are the keybinding ones or the ones that set the default modes and definitely one swith overriding maps. These are quick examples of ones that might be better optional.
But then things like
are pretty useful. At the very least, optionally disabling the entire file is great. I would just backport the rest to evil-collection, though it might be better to have more precision on what's optionally disabled. |
A toggle for not loading the file is fine (it would make life for #797 (comment) easier), introducing more toggles, I dunno. My greatest issue with that is the debate following any finer-grained tunables, like what functionality exactly belongs to them and why they're not done correctly. See also #797 (comment) for another opinion. |
I'd like to think of |
I'd prefer if anything having to do with keybindings was put in a separate file with the option to never load it. Any |
If you just want to prevent loading the file, you could do
|
Closed by #993. |
Hi, I'd like to request making evil-integration.el optional.
There seems to be some good integrations in that file so it might be a better idea to make only the extra keybindings optional?
Thanks!
The text was updated successfully, but these errors were encountered: