Page 1 of 1

Emacs Setup?

Posted: Sat Feb 04, 2017 7:17 pm
by yetneverdone
Hi, how can I setup love2d with emacs? ive already got the lua-mode

How can i easily compile and run the project? with debug console?

Re: Emacs Setup?

Posted: Sat Feb 04, 2017 10:02 pm
by CrackedP0t
I just use compile mode (M-x compile), and enter love . for the command. Then, in order to run your project, you can use M-x recompile or bind a key command to it in your .emacs.

Re: Emacs Setup?

Posted: Mon Feb 06, 2017 1:10 am
by yetneverdone
CrackedP0t wrote:I just use compile mode (M-x compile), and enter love . for the command. Then, in order to run your project, you can use M-x recompile or bind a key command to it in your .emacs.

Thanks. Do you know the syntax highlighting for the love2d itself?

Re: Emacs Setup?

Posted: Mon Feb 06, 2017 4:20 am
by CrackedP0t
yetneverdone wrote:Thanks. Do you know the syntax highlighting for the love2d itself?
I found this minor mode a while back: https://github.com/ejmr/love-minor-mode. You can install it from MELPA, just enter love-minor-mode.

Emacs protip: Whenever you're looking for a feature in emacs, try Googling `emacs (feature) mode`. You'll usually find something :)

Re: Emacs Setup?

Posted: Mon Jul 23, 2018 4:08 pm
by Duck Duckinson
Just to add.
The "love-minor-mode" comes with the bindings M-p to run (play) the Löve2D project.

Re: Emacs Setup?

Posted: Sun Jul 29, 2018 4:05 pm
by asommer
Duck Duckinson wrote: Mon Jul 23, 2018 4:08 pm Just to add.
The "love-minor-mode" comes with the bindings M-p to run (play) the Löve2D project.
Thanks! The love-minor-mode is awesome.