Skip to content

Commit

Permalink
refactor: move templates/ to static/
Browse files Browse the repository at this point in the history
To better reflect what this directory is intended to store (i.e. not
just templates).
  • Loading branch information
hlissner committed Dec 1, 2024
1 parent 201321c commit a39dd36
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lisp/cli/install.el
Original file line number Diff line number Diff line change
Expand Up @@ -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`),
Expand Down Expand Up @@ -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"))
Expand Down Expand Up @@ -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)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a39dd36

Please sign in to comment.