diff --git a/doom-modeline.el b/doom-modeline.el index 2784b3b..20fdac9 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -63,12 +63,18 @@ (require 'shrink-path) +;; +;; Compatibility +;; + (unless (>= emacs-major-version 26) (with-no-warnings ;; if-let and when-let are deprecated in Emacs 26+ in favor of their ;; if-let* variants, so we alias them for 25 users. + (defalias 'if-let* #'if-let) (defalias 'when-let* #'when-let))) + ;; ;; Variables ;;