-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
spacemacs/init-evil rebinds K after loading buffer #2909
Comments
Try wrapping your code with |
I have a function
I don't understand why 2 & 3 run before 4. That doesn't make sense to me. |
In your private layer add this to your packages.el (assuming (defun <layer>/pre-init-evil ()
(spacemacs|use-package-add-hook evil
:post-config
(progn
(my:evil-keybindings)))) |
You are right, this is a big bug, going to fix it ASAP, thank you ! |
@person808 the pre-init-evil worked, thank you. |
Indeed but it should not be necessary, OTOH what @person808 told you is the correct way to override lazy loaded settings, so always good to know :-) |
@jschaf Actually there is no bug at all :-) Did you put your evil stuff in a pre-init function ? |
The evil stuff was not originally in a pre-init function. I tried use-package :config and with-eval-after-load. I'll link to my code: https://github.com/jschaf/dotfiles/blob/master/spacemacs-layers/joe/packages.el
|
Ok I see, now all The order of loading is (from a file point of view):
I think that we should remove |
I agree. It's confusing to figure out what goes where. I would add a paragraph to the documentation on the precise order that the files are loaded and guidelines for how to separate functionality between the files. |
I think this can be closed. |
I rebound
K
in a private layer to move up 5 lines. After I load any buffer, spacemacs rebindsK
tospacemacs/evil-smart-doc-lookup
.Is there a way to prevent that from happening?
The text was updated successfully, but these errors were encountered: