meow-edit / doom-meow

A meow module for Doom Emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

many leader keybindings are missing when the +leader module flag is enabled

lilactown opened this issue · comments

From the README

... and many leader keybindings are missing when the +leader module flag is enabled.

I have solved the problem of having very little keybindings out of the box when using +leader by copying the keybindings from Doom's editor/evil/+evil-keybindings.el file, and commenting out the few things that actually depend on evil.

The localleader key is still totally garbled per #1

if you reach a good state where meow works without the keymap please share your setup! I'll also try to take a look at this in the meantime, if time permits.

TBH I gave up on this and decided to roll my own config without Doom, based around meow

This is actually not a bug with meow, but is caused by disabling the evil module, as the removed prefixes contain bindings for functions that are part of the evil module

I leave (evil +everywhere) in my doom init.el, and then put this following block in my doom-meow's config.el to disable evil by default. As far as I can tell, if I ever want to use evil mode, I can just call (evil-mode) and it’ll override Meow’s keybindings.

(if (modulep! :editor evil) 
  (add-hook! 'after-init-hook 
    (defun meow-init-local-var-hooks-disable-evil () 
      (remove-hook 'doom-after-modules-config-hook 'evil-mode) 
      (evil-mode -1))))

@quarkw Can you elaborate for someone new to emacs? Does that allow me to use meow for editing and let doom handle the leader key stuff? Do you have both meow and evil in the editor section of doom's init.el? Like this:

:editor
(meow +qwerty +override +leader)
(evil +everywhere)

The title of #1 mentions "the keypad flag", is that the +leader flag?

commented

That looks roughly right to me, but I actually haven't used Meow for a while. Sorry I don't know anything about the keypad flag. If there's none documented in meow, they're probably referring to the +leader flag