Skip to content

Commit

Permalink
feat: Add recompile
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jun 8, 2024
1 parent 9ee3cff commit 778d2c0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion easky.el
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ Arguments FORM-1, FORM-2 and FORM-3 are execution by each file action."

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

;;;###autoload
(defun easky-recompile ()
"Byte-recompile elc files."
(interactive)
(easky--exec-with-files "Select `recompile' action: "
(easky--display (easky-command "recompile"))
(let ((file (read-file-name "Select file for `recompile': "
nil nil t nil #'easky--select-el-files)))
(easky--display (easky-command "recompile" file)))
(let ((wildcards (read-string "Wildcards: ")))
(easky--display (easky-command "recompile" wildcards)))))

;;;###autoload
(defun easky-search (query)
"Search available packages with QUERY.
Expand Down

0 comments on commit 778d2c0

Please sign in to comment.