This commit is contained in:
coast 2025-07-26 00:54:22 +02:00
parent 84d9edd9e4
commit eec07d2be1

View file

@ -27,7 +27,7 @@
(let ((file (buffer-file-name)))
(cond
((not file)
(message "no file to run!"))
(message "No file to run!"))
((string-match "\\.py\\'" file)
(compile (format "python3 %s" file)))
((string-match "\\.c\\'" file)
@ -44,7 +44,7 @@
(compile (format "node %s" file)))
((coast/file-has-shebang-p file)
(compile (format "%s" file)))
(t (message "dunno how to run this file >:(")))))
(t (message "Not sure how to run this.")))))
(defun coast/file-has-shebang-p (file)
(when (and file (file-readable-p file))