Created
November 18, 2014 21:01
-
-
Save legumbre/38ef323645f17a3c8033 to your computer and use it in GitHub Desktop.
launch love2d app from Emacs
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")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm new to emacs, but how do I use/activate this?