Add set-project-type! autodef

And use it for love2d projects in lang/lua module.
This commit is contained in:
Henrik Lissner 2019-06-27 17:16:40 +02:00
parent ba7c713bf6
commit 22cc519ac1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 28 additions and 4 deletions

View file

@ -30,6 +30,9 @@
:modes (lua-mode markdown-mode json-mode)
:files (and "main.lua" "conf.lua")
:on-load
(set-project-type! 'love2d
:predicate #'+lua-love-project-root
:run #'+lua/run-love-game)
(map! :localleader
:map +lua-love-mode-map
"b" #'+lua/run-love-game))