1 line
1.4 KiB
Plaintext
1 line
1.4 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>Hey all, I've been playing around with general and noticed that it's doing something weird. Namely, I have "SPC w" mapped to <code>evil-window-map</code> (so I can do "SPC w s" to open a window below or "SPC w l" to move focus right). However, when I evaluate <code>(key-binding (kbd "SPC w"))</code>, it returns <code>(keymap evil-window-map evil-window-map)</code> - that is, "SPC w" is bound to a keymap whose elements are two copies of the evil-window-map keymap. This doesn't affect my workflow at all, but it's pretty unexpected, and I thought I'd check on here to make sure I wasn't missing something dumb.</p> <p>The minimal config I could reproduce it with is:</p> <pre><code>(use-package general :config (general-create-definer leader-def :states '(normal visual motion) :prefix "SPC")) (use-package evil :config (evil-mode)) (leader-def "" nil ;;to prevent an error about SPC not being a prefix "w" 'evil-window-map) </code></pre> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/summetria"> /u/summetria </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/qyh960/why_is_general_duplicating_a_command_keymap/">[link]</a></span>   <span><a href="https://www.reddit.com/r/emacs/comments/qyh960/why_is_general_duplicating_a_command_keymap/">[comments]</a></span> |