Skip to content

Commit ee7c36c

Browse files
committed
fix(init): Preview final Eask file
1 parent bc2fbc4 commit ee7c36c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

lisp/core/init.el

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@
4848
base-name (file-name-nondirectory (directory-file-name new-name))
4949
invalid-name (not (eask-init--check-filename base-name)))))
5050
(when continue
51+
(eask-println
52+
"This utility will walk you through creating an Eask file.
53+
It only covers the most common items, and tries to guess sensible defaults.
54+
55+
See `eask init --help` for definitive documentation on these fields
56+
and exactly what they do.
57+
58+
Use `eask install <pkg>` afterwards to install a package and
59+
save it as a dependency in the package.json file.
60+
61+
Press ^C at any time to quit.")
5162
;; Starting Eask-file creation!
5263
(let* ((project-dir (file-name-nondirectory (directory-file-name dir)))
5364
(project-name (eask-guess-package-name project-dir))
@@ -82,7 +93,8 @@
8293
"
8394
package-name version description website keywords
8495
entry-point emacs-version))
85-
(prompt (format "About to write to %s:\n\nIs this Okay? " new-name)))
96+
(prompt (format "About to write to %s:\n\n%s\n\nIs this Okay? "
97+
new-name content)))
8698
(when (yes-or-no-p prompt)
8799
(write-region content nil new-name)
88100
(find-file new-name))))))

0 commit comments

Comments
 (0)