fix(emacs/lean-project.el): update prompt message, have standard as a defualt

close #1017
This commit is contained in:
Soonho Kong 2016-03-04 15:18:45 -05:00
parent 7e64405f5e
commit c50ab524a5

View file

@ -19,15 +19,15 @@
(defun lean-project-create (directory type)
(interactive
(list (read-directory-name "Specify the project root directory: ")
(intern (completing-read "Project type:: " '(standard hott)))))
(intern (completing-read "Project type (standard or hott): " '(standard hott) nil t))))
(let ((project-file (concat (file-name-as-directory directory)
lean-project-file-name))
(ext (pcase type
(`lean "lean")
(`standard "lean")
(`hlean "hlean")
(`hott "hlean")
(_ (error "Unknown project type %S. Please select either standard or hott" type))))
(_ (progn
(message "Default 'standard' lean-project is created.")
"lean"))))
(default-contents
(s-join "\n"
;; EXT is a placeholder.