cli/install: add templates for {config,packages}.el
This commit is contained in:
parent
11046d7f82
commit
18d8ea22f6
3 changed files with 101 additions and 10 deletions
|
@ -46,20 +46,16 @@ DOOMDIR environment variable. e.g.
|
|||
(print! (success "Done!")))))
|
||||
'(("init.el" .
|
||||
(lambda ()
|
||||
(insert-file-contents (doom-path doom-emacs-dir "init.example.el"))))
|
||||
(insert-file-contents
|
||||
(doom-path doom-emacs-dir "init.example.el"))))
|
||||
("config.el" .
|
||||
(lambda ()
|
||||
(insert! ";;; %sconfig.el -*- lexical-binding: t; -*-\n\n"
|
||||
";; Place your private configuration here\n"
|
||||
((relpath doom-private-dir)))))
|
||||
(insert-file-contents
|
||||
(doom-path doom-core-dir "templates/config.el"))))
|
||||
("packages.el" .
|
||||
(lambda ()
|
||||
(insert! ";; -*- no-byte-compile: t; -*-\n;;; %spackages.el\n\n"
|
||||
";;; Examples:\n"
|
||||
";; (package! some-package)\n"
|
||||
";; (package! another-package :recipe (:host github :repo \"username/repo\"))\n"
|
||||
";; (package! builtin-package :disable t)\n"
|
||||
((relpath doom-private-dir))))))))
|
||||
(insert-file-contents
|
||||
(doom-path doom-core-dir "templates/packages.el")))))))
|
||||
|
||||
;; In case no init.el was present the first time `doom-initialize-modules' was
|
||||
;; called in core.el (e.g. on first install)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue