mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
refactor: load doom-compat.el from doom.el
This commit is contained in:
parent
d51fffeda5
commit
d6037a24d4
2 changed files with 6 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue