From a19a64b16b29ced9610ffc10c5fc03e9ade20cb5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 19 May 2018 18:01:49 +0200 Subject: [PATCH] Complain if using Emacs <25 More helpful than advice-add errors. --- core/core.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/core.el b/core/core.el index 4e304ff3c..a681f59b5 100644 --- a/core/core.el +++ b/core/core.el @@ -1,5 +1,10 @@ ;;; core.el --- the heart of the beast -*- lexical-binding: t; -*- +(eval-when-compile + (when (version< emacs-version "25") + (error "Doom only supports Emacs 25.1 and higher!"))) + +;; (defvar doom-version "2.0.9" "Current version of DOOM emacs.")