💥 add default init.el
Doom is moving away from supporting direct modification of its source files, or private modules within Doom's source tree. Instead, customizations should be relegated to ~/.doom.d/ (or ~/.config/doom/, doom will respect XDG conventions if it sees this directory). As suchm a default init.el is now supplied, which will break your custom ~/.emacs.d/init.el! The quick fix: mkdir ~/.doom.d mv ~/.emacs.d/init.el ~/.doom.d/init.el ~/.doom.d/early-init.el is also available if you need to change crucial settings before Doom loads anything. init.el will still be loaded before any other module is.
This commit is contained in:
parent
2c0675a8dd
commit
2933142d40
2 changed files with 42 additions and 15 deletions
27
Makefile
27
Makefile
|
@ -18,16 +18,16 @@ ce: compile-elpa
|
||||||
d: doctor
|
d: doctor
|
||||||
|
|
||||||
## Package management
|
## Package management
|
||||||
install: | init.el .local/autoloads.el
|
install: | .local/autoloads.el
|
||||||
@$(DOOM) -f doom//packages-install
|
@$(DOOM) -f doom//packages-install
|
||||||
|
|
||||||
update: | init.el .local/autoloads.el
|
update: | .local/autoloads.el
|
||||||
@$(DOOM) -f doom//packages-update
|
@$(DOOM) -f doom//packages-update
|
||||||
|
|
||||||
autoremove: | init.el .local/autoloads.el
|
autoremove: | .local/autoloads.el
|
||||||
@$(DOOM) -f doom//packages-autoremove
|
@$(DOOM) -f doom//packages-autoremove
|
||||||
|
|
||||||
autoloads: | init.el
|
autoloads:
|
||||||
@$(DOOM) -f doom//reload-autoloads
|
@$(DOOM) -f doom//reload-autoloads
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,19 +36,19 @@ autoloads: | init.el
|
||||||
# compile-core
|
# compile-core
|
||||||
# compile-module
|
# compile-module
|
||||||
# compile-module/submodule
|
# compile-module/submodule
|
||||||
compile: | init.el clean
|
compile: | clean
|
||||||
@$(DOOM) -f doom//byte-compile
|
@$(DOOM) -f doom//byte-compile
|
||||||
|
|
||||||
compile-core: | init.el clean
|
compile-core: | clean
|
||||||
@$(DOOM) -f doom//byte-compile-core
|
@$(DOOM) -f doom//byte-compile-core
|
||||||
|
|
||||||
compile-elpa: | init.el
|
compile-elpa:
|
||||||
@$(DOOM) -f doom//byte-recompile-plugins
|
@$(DOOM) -f doom//byte-recompile-plugins
|
||||||
|
|
||||||
$(patsubst %, compile-%, $(MODULES)): | init.el .local/autoloads.el
|
$(patsubst %, compile-%, $(MODULES)): | .local/autoloads.el
|
||||||
@$(DOOM) -f doom//byte-compile -- $(patsubst compile-%, %, $@)
|
@$(DOOM) -f doom//byte-compile -- $(patsubst compile-%, %, $@)
|
||||||
|
|
||||||
recompile: | init.el
|
recompile:
|
||||||
@$(DOOM) -f doom//byte-compile -- -r
|
@$(DOOM) -f doom//byte-compile -- -r
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -60,14 +60,14 @@ clean:
|
||||||
# test-core
|
# test-core
|
||||||
# test-module
|
# test-module
|
||||||
# test-module/submodule
|
# test-module/submodule
|
||||||
test: | init.el .local/autoloads.el
|
test: | .local/autoloads.el
|
||||||
@$(DOOM) -f doom//run-tests
|
@$(DOOM) -f doom//run-tests
|
||||||
|
|
||||||
test-core $(patsubst %, test-%, $(MODULES)): | init.el .local/autoloads.el
|
test-core $(patsubst %, test-%, $(MODULES)): | .local/autoloads.el
|
||||||
@$(DOOM) -f doom//run-tests -- $(subst test-, , $@)
|
@$(DOOM) -f doom//run-tests -- $(subst test-, , $@)
|
||||||
|
|
||||||
# run tests interactively
|
# run tests interactively
|
||||||
testi: | init.el .local/autoloads.el
|
testi: | .local/autoloads.el
|
||||||
@$(DOOMI) -f doom//run-tests
|
@$(DOOMI) -f doom//run-tests
|
||||||
|
|
||||||
|
|
||||||
|
@ -85,9 +85,6 @@ info:
|
||||||
@$(EMACS) --batch -l core/core.el -l core/autoload/debug.el -f doom/info
|
@$(EMACS) --batch -l core/core.el -l core/autoload/debug.el -f doom/info
|
||||||
|
|
||||||
## Internal tasks
|
## Internal tasks
|
||||||
init.el:
|
|
||||||
@$(error No init.el file; create one or copy init.example.el)
|
|
||||||
|
|
||||||
.local/autoloads.el:
|
.local/autoloads.el:
|
||||||
@$(DOOM) -f doom-initialize-autoloads
|
@$(DOOM) -f doom-initialize-autoloads
|
||||||
|
|
||||||
|
|
30
init.el
Normal file
30
init.el
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
;;; init.el -*- lexical-binding: t; -*-
|
||||||
|
;;
|
||||||
|
;; Author: Henrik Lissner <henrik@lissner.net>
|
||||||
|
;; URL: https://github.com/hlissner/doom-emacs
|
||||||
|
;;
|
||||||
|
;; ================= =============== =============== ======== ========
|
||||||
|
;; \\ . . . . . . .\\ //. . . . . . .\\ //. . . . . . .\\ \\. . .\\// . . //
|
||||||
|
;; ||. . ._____. . .|| ||. . ._____. . .|| ||. . ._____. . .|| || . . .\/ . . .||
|
||||||
|
;; || . .|| ||. . || || . .|| ||. . || || . .|| ||. . || ||. . . . . . . ||
|
||||||
|
;; ||. . || || . .|| ||. . || || . .|| ||. . || || . .|| || . | . . . . .||
|
||||||
|
;; || . .|| ||. _-|| ||-_ .|| ||. . || || . .|| ||. _-|| ||-_.|\ . . . . ||
|
||||||
|
;; ||. . || ||-' || || `-|| || . .|| ||. . || ||-' || || `|\_ . .|. .||
|
||||||
|
;; || . _|| || || || || ||_ . || || . _|| || || || |\ `-_/| . ||
|
||||||
|
;; ||_-' || .|/ || || \|. || `-_|| ||_-' || .|/ || || | \ / |-_.||
|
||||||
|
;; || ||_-' || || `-_|| || || ||_-' || || | \ / | `||
|
||||||
|
;; || `' || || `' || || `' || || | \ / | ||
|
||||||
|
;; || .===' `===. .==='.`===. .===' /==. | \/ | ||
|
||||||
|
;; || .==' \_|-_ `===. .===' _|_ `===. .===' _-|/ `== \/ | ||
|
||||||
|
;; || .==' _-' `-_ `=' _-' `-_ `=' _-' `-_ /| \/ | ||
|
||||||
|
;; || .==' _-' '-__\._-' '-_./__-' `' |. /| | ||
|
||||||
|
;; ||.==' _-' `' | /==.||
|
||||||
|
;; ==' _-' \/ `==
|
||||||
|
;; \ _-' `-_ /
|
||||||
|
;; `'' ``'
|
||||||
|
;;
|
||||||
|
;; These demons are not part of GNU Emacs.
|
||||||
|
;;
|
||||||
|
;;; License: MIT
|
||||||
|
|
||||||
|
(require 'core (concat user-emacs-directory "core/core"))
|
Loading…
Add table
Add a link
Reference in a new issue