Add Emacs 26.x warning to doctor checks

We'll be dropping support for it in the next few months.
This commit is contained in:
Henrik Lissner 2021-01-10 05:02:00 -05:00
parent 042fd4d929
commit 3f2c4b80e9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -48,9 +48,15 @@ in."
;; REVIEW Refactor me
(print! (start "Checking your Emacs version..."))
(when EMACS28+
(warn! "Emacs %s detected. Doom doesn't support Emacs 28/HEAD. It is unstable and may cause errors."
(cond
(EMACS28+
(warn! (concat "Emacs %s detected. Doom should support this version, but be prepared for "
"Emacs updates causing breakages.")
emacs-version))
((= emacs-major-version 26)
(warn! (concat "Emacs %s detected. Doom is dropping Emacs 26.x support very soon. Consider "
"upgrading to Emacs 27.x.")
emacs-version)))
(print! (start "Checking for Emacs config conflicts..."))
(when (file-exists-p "~/.emacs")