refactor: load doom-compat.el from doom.el

This commit is contained in:
Henrik Lissner
2025-01-05 00:56:21 -05:00
parent d51fffeda5
commit d6037a24d4
2 changed files with 6 additions and 3 deletions

View File

@ -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)

View File

@ -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)