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:
Henrik Lissner
2024-11-28 16:17:40 -05:00
parent 201321c929
commit a39dd36e97
7 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@
This command does the following: This command does the following:
1. Creates `$DOOMDIR' at ~/.config/doom (if it or ~/.doom.d doesn't exist), 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), it doesn't exist),
3. Creates dummy files for `$DOOMDIR'/{config,packages}.el, 3. Creates dummy files for `$DOOMDIR'/{config,packages}.el,
4. Prompts you to generate an envvar file (same as `$ doom env`), 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)) (print! (item "Creating %s...") (path filename))
(with-temp-file filename (insert-file-contents template)) (with-temp-file filename (insert-file-contents template))
(print! (success "Done!"))))) (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 `((,doom-module-init-file
. ,(file-name-with-extension (doom-path template-dir doom-module-init-file) . ,(file-name-with-extension (doom-path template-dir doom-module-init-file)
".example.el")) ".example.el"))
@ -124,7 +124,7 @@ Change `$DOOMDIR' with the `--doomdir' option, e.g.
(print! (success "Finished! Doom is ready to go!\n")) (print! (success "Finished! Doom is ready to go!\n"))
(with-temp-buffer (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))))) (print! "%s" (buffer-string)))))
(provide 'doom-cli-install) (provide 'doom-cli-install)

View File

@ -2,7 +2,7 @@
;;; $DOOMDIR/packages.el ;;; $DOOMDIR/packages.el
;; To install a package with Doom you must declare them here and run 'doom sync' ;; 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: ;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror: