cli/install: add templates for {config,packages}.el

This commit is contained in:
Henrik Lissner 2019-12-19 23:32:58 -05:00
parent 11046d7f82
commit 18d8ea22f6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 101 additions and 10 deletions

View file

@ -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)