mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-06 15:13:33 -05:00
evil keeps track of auxiliary keymaps. This list is updated when you switch states, but it _really_ needs to be updated when minor modes (with keymaps) are toggled. When this isn't done, their keymaps aren't recognized and their keys will be unavailable at first. Since there is no global hook for enabling minor modes, we have to manually add evil-normalize-keymaps to minor mode hooks. This commit, specifically, fixes evil-org-mode-map. This also indirectly fixes folding src blocks for evil users (on the first org buffer).