syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.56k stars 4.9k forks source link

Correctly set `evil-undo-system` #16418

Closed fnussbaum closed 1 month ago

fnussbaum commented 1 month ago

When using undo-tree, the variable evil-undo-system should be set to undo-tree. The call to evil-set-undo-system does not set the variable itself; hence it used to remain the default, nil. Customizing the variable does both: It uses the custom set function that also calls evil-set-undo-system.

References: https://github.com/emacs-evil/evil/issues/1074 https://github.com/emacs-evil/evil/commit/8a3ac256804a4786bd8adbf6a3f6925162e2722f