diff --git a/lisp/doom-lib.el b/lisp/doom-lib.el index 522327b44..288b599bd 100644 --- a/lisp/doom-lib.el +++ b/lisp/doom-lib.el @@ -2,9 +2,6 @@ ;;; Commentary: ;;; Code: -(when (< emacs-major-version 30) - (require 'doom-compat)) - ;;; Custom error types (define-error 'doom-error "An unexpected Doom error") (dolist (type '((doom-font-error "Could not find a font on your system" doom-error) diff --git a/lisp/doom.el b/lisp/doom.el index 0a8d9be1a..a4696aa20 100644 --- a/lisp/doom.el +++ b/lisp/doom.el @@ -197,6 +197,12 @@ (setenv "HOME" realhome) (setq abbreviated-home-dir nil))) + +;;; Backport niceties from later versions of Emacs: +(when (< emacs-major-version 30) + (require 'doom-compat)) + + ;;; Load Doom's stdlib (add-to-list 'load-path (file-name-directory load-file-name)) (require 'doom-lib)