File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242(require 'ansi ) ; we need `ansi' to run through Eask API
4343(require 'lv )
4444(require 'marquee-header )
45+ (eval-when-compile
46+ (require 'subr-x ))
4547
4648(defgroup easky nil
4749 " Control Eask in Emacs."
@@ -739,7 +741,12 @@ This can be replaced with `easky-package-install' command."
739741 (easky--inhibit-log (message " Checking filename... " ))
740742 (sleep-for 0.2 )))
741743 ; ; Starting Eask-file creation!
742- (let* ((project-name (file-name-nondirectory (directory-file-name default-directory)))
744+ (let* ((project-name (thread-last
745+ (file-name-nondirectory (directory-file-name default-directory))
746+ (downcase )
747+ ; ; Remove customary prefixes and suffixes in Emacs Lisp repository names
748+ (replace-regexp-in-string (eval-when-compile (rx bos " emacs-" )) " " )
749+ (replace-regexp-in-string (eval-when-compile (rx (in " .-" ) " el" eos)) " " )))
743750 (package-name (read-string (format " package name: (%s ) " project-name) nil nil project-name))
744751 (version (read-string " version: (1.0.0) " nil nil " 1.0.0" ))
745752 (description (read-string " description: " ))
You can’t perform that action at this time.
0 commit comments