syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.64k stars 4.89k forks source link

Evil-snipe-mode breaks deer-mode #7645

Closed martinzk closed 4 years ago

martinzk commented 7 years ago

Description :octocat:

Keybindings in deer mode are overwritten by evil-snipe layer.

I have tried with dired and ranger hooks to call turn-off-evil-snipe-mode and turn-off-evil-snipe-override-mode but evil-snipe is still loaded in deer.

Reproduction guide :beetle:

Expected behaviour: :heart: :smile: Should call the ranger/deer bindings.

System Info :computer:

TheBB commented 7 years ago

I'm not sure how to fix this. It's turned off in deer, as it should be, but then turned back on again as part of post-command-hook due to being a globalized minor mode.

TheBB commented 7 years ago

https://github.com/hlissner/evil-snipe/pull/45

TheBB commented 7 years ago

Actually this problem runs deeper, I'll have a look but it will not be easy to fix I think.

braham-snyder commented 7 years ago

Is this the same bug causing undo-tree-visualizer-select to be shadowed by evil-snipe-s regardless of evil-snipe-local-mode being nil? Seeing these issues on both master and develop.

Regarding repro with ranger: note that enabling evil-snipe-override-mode from a deer buffer doesn't immediately shadow ranger-travel (f)--shadowing does occur after navigating to a different folder or reopening deer.

With ranger, I've circumvented the issue by using normal state instead of motion state (which doesn't work in undo-tree-mode)--in ranger.el, I just changed:

         (evil-set-initial-state 'ranger-mode 'motion)
         (evil-make-overriding-map ranger-mode-map 'motion)

to

         (evil-set-initial-state 'ranger-mode 'normal)
         (evil-make-overriding-map ranger-mode-map 'normal)

I'm sort of confused that it doesn't seem like many people are running into this issue... Do not many people use evil-snipe-override, or something? Is there a simpler workaround?

braham-snyder commented 7 years ago

I think it is indeed the same bug--see: https://github.com/hlissner/evil-snipe/issues/48

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!