Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion easky.el
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
(require 'ansi) ; we need `ansi' to run through Eask API
(require 'lv)
(require 'marquee-header)
(eval-when-compile
(require 'subr-x))

(defgroup easky nil
"Control Eask in Emacs."
Expand Down Expand Up @@ -739,7 +741,12 @@ This can be replaced with `easky-package-install' command."
(easky--inhibit-log (message "Checking filename..."))
(sleep-for 0.2)))
;; Starting Eask-file creation!
(let* ((project-name (file-name-nondirectory (directory-file-name default-directory)))
(let* ((project-name (thread-last
(file-name-nondirectory (directory-file-name default-directory))
(downcase)
;; Remove customary prefixes and suffixes in Emacs Lisp repository names
(replace-regexp-in-string (eval-when-compile (rx bos "emacs-")) "")
(replace-regexp-in-string (eval-when-compile (rx (in ".-") "el" eos)) "")))
(package-name (read-string (format "package name: (%s) " project-name) nil nil project-name))
(version (read-string "version: (1.0.0) " nil nil "1.0.0"))
(description (read-string "description: "))
Expand Down