Skip to content

Instantly share code, notes, and snippets.

View Morozov-5F's full-sized avatar
🐢

Evgeniy Morozov Morozov-5F

🐢
  • Helsinki, FI
View GitHub Profile
@legumbre
legumbre / love2d.el
Created November 18, 2014 21:01
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"))))