mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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.
This commit is contained in:
7
modules/emacs/undo/doctor.el
Normal file
7
modules/emacs/undo/doctor.el
Normal file
@ -0,0 +1,7 @@
|
||||
;;; 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.")))
|
Reference in New Issue
Block a user