diff --git a/doom-modeline.el b/doom-modeline.el index c0c3537..7f8b2e5 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -78,6 +78,7 @@ (when (>= emacs-major-version 26) (require 'project)) + ;; ;; Variables ;; @@ -138,9 +139,15 @@ The icons may not be showed correctly in terminal and on Windows.") ;; -;; compatibility +;; Compatibilities ;; +(unless (>= emacs-major-version 26) + (with-no-warnings + ;; Define `if-let*' and `when-let*' variants for 25 users. + (defalias 'if-let* #'if-let) + (defalias 'when-let* #'when-let))) + ;; Don’t compact font caches during GC. (if (eq system-type 'windows-nt) (setq inhibit-compacting-font-caches t)) @@ -155,7 +162,7 @@ It returns a file name which can be used directly as argument of ;; -;; externals +;; Externals ;; (defvar anzu--current-position)