This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar love2d-program "~/dev/love.app/Contents/MacOS/love") | |
(defun love2d-launch-current () | |
(interactive) | |
(let ((app-root (locate-dominating-file (buffer-file-name) "main.lua"))) | |
(if app-root | |
(shell-command (format "%s %s &" love2d-program app-root)) | |
(error "main.lua not found")))) |