no silly
This commit is contained in:
parent
84d9edd9e4
commit
eec07d2be1
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@
|
||||||
(let ((file (buffer-file-name)))
|
(let ((file (buffer-file-name)))
|
||||||
(cond
|
(cond
|
||||||
((not file)
|
((not file)
|
||||||
(message "no file to run!"))
|
(message "No file to run!"))
|
||||||
((string-match "\\.py\\'" file)
|
((string-match "\\.py\\'" file)
|
||||||
(compile (format "python3 %s" file)))
|
(compile (format "python3 %s" file)))
|
||||||
((string-match "\\.c\\'" file)
|
((string-match "\\.c\\'" file)
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
(compile (format "node %s" file)))
|
(compile (format "node %s" file)))
|
||||||
((coast/file-has-shebang-p file)
|
((coast/file-has-shebang-p file)
|
||||||
(compile (format "%s" 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)
|
(defun coast/file-has-shebang-p (file)
|
||||||
(when (and file (file-readable-p file))
|
(when (and file (file-readable-p file))
|
||||||
|
|
Loading…
Add table
Reference in a new issue