Files
doomemacs/modules/emacs/undo/doctor.el
Henrik Lissner 457b7cab1e docs(undo): doctor: check for other undo package
If the user has installed one package while :emacs undo installs the
other, they're gonna have a bad time.
2025-04-05 02:00:12 -04:00

8 lines
396 B
EmacsLisp

;;; emacs/undo/doctor.el -*- lexical-binding: t; -*-
(let* ((unwanted (if (modulep! +tree) 'undo-fu 'undo-tree))
(wanted (if (modulep! +tree) 'undo-tree 'undo-fu)))
(when (doom-package-in-module-p unwanted :user)
(error! "User has installed %S, which is incompatible with %S" unwanted wanted)
(explain! "Set (or unset) this module's +tree flag to set up one or the other.")))