emacs/var/elfeed/db/data/f8/f8e2069b087b414439013bb0f2ff893495bdd128
2022-01-03 12:49:32 -06:00

1 line
1.4 KiB
Plaintext

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