mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
refactor: move templates/ to static/
To better reflect what this directory is intended to store (i.e. not just templates).
This commit is contained in:
@ -28,7 +28,7 @@
|
||||
This command does the following:
|
||||
|
||||
1. Creates `$DOOMDIR' at ~/.config/doom (if it or ~/.doom.d doesn't exist),
|
||||
2. Copies ~/.config/emacs/templates/init.example.el to `$DOOMDIR'/init.el (if
|
||||
2. Copies ~/.config/emacs/static/init.example.el to `$DOOMDIR'/init.el (if
|
||||
it doesn't exist),
|
||||
3. Creates dummy files for `$DOOMDIR'/{config,packages}.el,
|
||||
4. Prompts you to generate an envvar file (same as `$ doom env`),
|
||||
@ -70,7 +70,7 @@ Change `$DOOMDIR' with the `--doomdir' option, e.g.
|
||||
(print! (item "Creating %s...") (path filename))
|
||||
(with-temp-file filename (insert-file-contents template))
|
||||
(print! (success "Done!")))))
|
||||
(let ((template-dir (doom-path doom-emacs-dir "templates")))
|
||||
(let ((template-dir (doom-path doom-emacs-dir "static/")))
|
||||
`((,doom-module-init-file
|
||||
. ,(file-name-with-extension (doom-path template-dir doom-module-init-file)
|
||||
".example.el"))
|
||||
@ -124,7 +124,7 @@ Change `$DOOMDIR' with the `--doomdir' option, e.g.
|
||||
|
||||
(print! (success "Finished! Doom is ready to go!\n"))
|
||||
(with-temp-buffer
|
||||
(insert-file-contents (doom-path doom-emacs-dir "templates/QUICKSTART_INTRO"))
|
||||
(insert-file-contents (doom-path doom-emacs-dir "static/QUICKSTART_INTRO"))
|
||||
(print! "%s" (buffer-string)))))
|
||||
|
||||
(provide 'doom-cli-install)
|
||||
|
@ -2,7 +2,7 @@
|
||||
;;; $DOOMDIR/packages.el
|
||||
|
||||
;; To install a package with Doom you must declare them here and run 'doom sync'
|
||||
;; on the command line, then restart Emacs for the changes to take effect.
|
||||
;; on the command line, then restart Emacs for the changes to take effect -- or
|
||||
|
||||
|
||||
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
|
Reference in New Issue
Block a user