eval-when-compile EMACS2*+ consts

This commit is contained in:
Henrik Lissner 2018-05-14 13:05:33 +02:00
parent 866030bdc6
commit a1b385a23d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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