Skip to content

Commit

Permalink
Simplify default.el file
Browse files Browse the repository at this point in the history
Loading `early-init.el` is not needed in non-Emacs 29+.
  • Loading branch information
thiagokokada committed Oct 30, 2022
1 parent ef72ee0 commit 9586d69
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,7 @@ let
# without installing ~/.emacs.d
emacs = let
load-config-from-site = writeTextDir "share/emacs/site-lisp/default.el" ''
(message "doom-emacs is not placed in `doom-private-dir',
loading from `site-lisp'")
${# TODO: remove once Emacs 29+ is released and commonly available
lib.optionalString (!isEmacs29) ''
(load "${doom-emacs}/early-init.el")
''}
(message "doom-emacs is not placed in `doom-private-dir', loading from `site-lisp'")
(load "${doom-emacs}/lisp/doom.el")
(load "${doom-emacs}/lisp/doom-start.el")
'';
Expand Down

0 comments on commit 9586d69

Please sign in to comment.