Skip to content

Commit 778d2c0

Browse files
committed
feat: Add recompile
1 parent 9ee3cff commit 778d2c0

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

easky.el

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ Arguments FORM-1, FORM-2 and FORM-3 are execution by each file action."
648648

649649
;;;###autoload
650650
(defun easky-compile ()
651-
"Clean up .eask directory."
651+
"Byte-compile elc files."
652652
(interactive)
653653
(easky--exec-with-files "Select `compile' action: "
654654
(easky--display (easky-command "compile"))
@@ -658,6 +658,18 @@ Arguments FORM-1, FORM-2 and FORM-3 are execution by each file action."
658658
(let ((wildcards (read-string "Wildcards: ")))
659659
(easky--display (easky-command "compile" wildcards)))))
660660

661+
;;;###autoload
662+
(defun easky-recompile ()
663+
"Byte-recompile elc files."
664+
(interactive)
665+
(easky--exec-with-files "Select `recompile' action: "
666+
(easky--display (easky-command "recompile"))
667+
(let ((file (read-file-name "Select file for `recompile': "
668+
nil nil t nil #'easky--select-el-files)))
669+
(easky--display (easky-command "recompile" file)))
670+
(let ((wildcards (read-string "Wildcards: ")))
671+
(easky--display (easky-command "recompile" wildcards)))))
672+
661673
;;;###autoload
662674
(defun easky-search (query)
663675
"Search available packages with QUERY.

0 commit comments

Comments
 (0)