From a1b385a23d1f7faedbedde7b6aa582f2462dcbfc Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 14 May 2018 13:05:33 +0200 Subject: [PATCH] eval-when-compile EMACS2*+ consts --- core/core.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/core.el b/core/core.el index 279391fa2..c581e23b6 100644 --- a/core/core.el +++ b/core/core.el @@ -7,6 +7,11 @@ "If non-nil, all doom functions will be verbose. Set DEBUG=1 in the command line or use --debug-init to enable this.") +(defconst EMACS26+ + (eval-when-compile (not (version< emacs-version "26")))) +(defconst EMACS27+ + (eval-when-compile (not (version< emacs-version "27")))) + ;; (defvar doom-emacs-dir (eval-when-compile (file-truename user-emacs-directory)) @@ -47,9 +52,6 @@ Use this for files that change often, like cache files.") "Where your private customizations are placed. Must end in a slash. Respects XDG directory conventions if ~/.config/doom exists.") -(defconst EMACS26+ (not (version< emacs-version "26"))) -(defconst EMACS27+ (not (version< emacs-version "27"))) - ;;; ;; UTF-8 as the default coding system