mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
refactor: load doom-compat.el from doom.el
This commit is contained in:
@ -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)
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user