Skip to content

Instantly share code, notes, and snippets.

@legumbre
Created November 18, 2014 21:01
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save legumbre/38ef323645f17a3c8033 to your computer and use it in GitHub Desktop.
Save legumbre/38ef323645f17a3c8033 to your computer and use it in GitHub Desktop.
launch love2d app from Emacs
(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"))))
@Morozov-5F
Copy link

Wow, thank you man, you saved a lotta time for me

Copy link

ghost commented Aug 20, 2017

I'm new to emacs, but how do I use/activate this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment