-
Notifications
You must be signed in to change notification settings - Fork 272
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
Evil Integration #66
Evil Integration #66
Conversation
Will merge this soon unless there are issues. |
I think that it would be preferable if all the keybindings for major modes (and any mode-specific stuff) wer moved to the corresponding file. That can be done later though if you want to. The |
Yup. I plan that as a separate step.
The intent there was to also guard against the case where it wasn't bound. I was tracking evil's head for a while.. But upon closer thought, you're right, it doesn't need to be bound-checked so I'll remove that part.
Sounds good, I'll give that a shot then. |
evil-collection.el
Outdated
@@ -32,6 +32,16 @@ | |||
;; This is so because many users find it confusing. | |||
|
|||
;;; Code: | |||
|
|||
;; FIXME: Is this the best way to do this? | |||
(when (or |
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.
I think this can simply check for (featurep 'evil-integration)
after the (require 'evil)
.
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.
featurep check is OK with me though it does have a little bit of indirection. :)
I wonder if it makes sense just to throw a user-error if it isn't set to nil (evil-want-integration)/(or if the feature is provided) instead of messaging the user and hoping they fix it. Thoughts @noctuid @fbergroth @Ambrevar ? |
Tracking most recent evil commit: 8ce8b63c679d4da1085238c5df006bb7fbff04f1
This also gates requiring evil-collection-integration. The rationale is that it's probably better not to require both evil-collection-integration and evil-integration together as that might cause weirder behavior than the alternative.
I think it would be better to keep it as a message so it doesn't potentially halt/break init. As for using featurep, you may also want to check |
I'm trying to grok this sentence and I feel like I understand but also that I don't. :) |
Something like this:
|
I would like to see |
@noctuid Thanks for spelling that out. --NVM: See the edit.-- Side comment: Is there a way to wrap these message strings without using concat/format but also going under the 80 column limit? |
Yup, I'll start splitting them out soon after this PR is merged.
Yeah, I'm planning on tagging the latest evil commit in any Integration: commit so that it's easier to port changes over but I do think it'll be somewhat tedious. As for user-error vs message, I was leaning towards user-error but I'd like more votes on either choice before going for either. I don't have a strong opinion here. Feel free to throw in your 2c too. |
You can do this but it's not pretty either: (message "Some \
text") |
I'm wondering if it would be reasonable for a user to leave evil-want-integration set to
As a middle ground, display-warning might also be an option. |
It'd probably be very tricky once all the parts split into their separate modules. It's probably best to strongly recommend disabling it altogether.
Sounds good.
I'm going with that option for now. It's a good middleground between 'in your face' and 'doesn't break init'. |
@noctuid @Ambrevar
Would love some input on this.
The defcustom from evil's 'evil-want-integration' is a little awkward to use so we either need to put it in the readme for users to disable or figure out how to disable it from evil-collection. Either way, it seems messy.
This won't pass the byte compiler (since there's a few warnings around unused stuff) yet.
Having to rename some of those variables/functions to pass the linter is also regrettable and makes me think this might be tedious to track upstream's evil-integration when/if it changes.
At the very least, with the dired removals, we stop seeing duplicate dired menus.!!