mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-22 16:21:04 -05:00
Add EMACS26+ & EMACS27+ constants
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
(require 'map))
|
||||
|
||||
(eval-and-compile
|
||||
(when (version< emacs-version "26")
|
||||
(unless EMACS26+
|
||||
(with-no-warnings
|
||||
(defalias 'if-let* #'if-let)
|
||||
(defalias 'when-let* #'when-let))))
|
||||
|
@@ -56,6 +56,9 @@ Use this for files that change often, like cache files.")
|
||||
(defvar doom-packages-dir (concat doom-local-dir "packages/")
|
||||
"Where package.el and quelpa plugins (and their caches) are stored.")
|
||||
|
||||
(defconst EMACS26+ (not (version< emacs-version "26")))
|
||||
(defconst EMACS27+ (not (version< emacs-version "27")))
|
||||
|
||||
|
||||
;;;
|
||||
;; UTF-8 as the default coding system
|
||||
|
Reference in New Issue
Block a user