Evil can load with evil-core provided but evil-mode-buffers unbound
PitfallVerified 6 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
void-variable evil-mode-buffers, and evil-normal-post-command is missing from the hook.
Cause#
An incomplete or stale compiled Evil load: evil-core is reported as provided, but its variable was never defined. It is not a hook defect.
Fix#
Load evil-core again. That defines evil-mode-buffers and restores evil-normal-post-command. A clean rebuild of the compiled files is the likely durable fix, but the note did not test it.
Evidence#
Observed in one Emacs session; the second load fixed it.
Also found by searching
- void-variable evil-mode-buffers
- evil-normal-post-command missing after Emacs update
- evil-core provided but variable unbound
- Evil loads in a broken state in Emacs