Git Product home page Git Product logo

Comments (5)

noctuid avatar noctuid commented on June 27, 2024

Try running (evil-normalize-keymaps) right after binding SPC.

from evil-guide.

BooAA avatar BooAA commented on June 27, 2024

If you mean adding (evil-normallize-keymaps) right after evil-define-key , I have tried, but it doesn't work.

from evil-guide.

noctuid avatar noctuid commented on June 27, 2024

Run it in the message buffer manually and see if that fixes it. If it does you can do that in your init with something like with-current-buffer.

from evil-guide.

BooAA avatar BooAA commented on June 27, 2024

Great! That fixes the problem.

Out of curiosity, can you tell me why only the startup message buffer have this issue? It's so strange that a minor mode has been activated but it's keymap doesn't. I want to understand this.

BTW, do you recommend using evil-escape to escape everything? Another question, I started using evil-collection yesterday, do you think using the evil-collection-setup-minibuffer feature will be a better choice than using hydra in minibuffer?( personally I use ivy with hydra-ivy, I'm wondering whether using evil-collection for minibuffer can give me more consistency.

from evil-guide.

noctuid avatar noctuid commented on June 27, 2024

It's probably because the message buffer exists even before evil loads. Evil's keymaps aren't really comparable to normal minor mode keymaps.

Edit: To better clarify, the message buffer existing so early may have something to do with it, but this is an issue in general. it's not just a matter of evil-mode being active. Evil's auxiliary maps are actually made in the regular minor and major mode keymaps; they just have no meaning normally and are handled specially by evil.

I don't recommend using evil-escape at all unless you don't have a good key available for escape. I'm guessing that evil-escape has the same issues as key-chord (i.e. that it will accidentally trigger if there is input lag/slow down and that you can only use it in Emacs). I think it's much better to use a dedicated thumbkey (or capslock). For example, I have right alt bound to my altgr layer when held and to escape when immediately released.

Since most evil keybindings aren't usable in the minibuffer, I think that hydra-ivy is fine/preferable. You can try both out and see which you like better. I don't use a modal minibuffer that often and generally prefer using modifiers in the minibuffers personally.

from evil-guide.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.