trying to fix

This commit is contained in:
Chris Cochrun 2022-01-03 12:41:35 -06:00
parent fa407dfeb6
commit e013d7569e
22945 changed files with 447936 additions and 0 deletions

View file

@ -0,0 +1 @@
<!-- 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>