mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Fix: compatibility issue with 25.
This commit is contained in:
parent
3d1490d6e6
commit
1b0cbe842f
1 changed files with 9 additions and 2 deletions
|
@ -78,6 +78,7 @@
|
||||||
(when (>= emacs-major-version 26)
|
(when (>= emacs-major-version 26)
|
||||||
(require 'project))
|
(require 'project))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Variables
|
;; 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.
|
;; Don’t compact font caches during GC.
|
||||||
(if (eq system-type 'windows-nt)
|
(if (eq system-type 'windows-nt)
|
||||||
(setq inhibit-compacting-font-caches t))
|
(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)
|
(defvar anzu--current-position)
|
||||||
|
|
Loading…
Reference in a new issue