Emacs Setup?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
yetneverdone
Party member
Posts: 446
Joined: Sat Sep 24, 2016 11:20 am
Contact:

Emacs Setup?

Post 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?
User avatar
CrackedP0t
Citizen
Posts: 69
Joined: Wed May 07, 2014 4:01 am
Contact:

Re: Emacs Setup?

Post 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.
/人 ◕‿‿◕ 人\
Here, have an umlaut. Ö
User avatar
yetneverdone
Party member
Posts: 446
Joined: Sat Sep 24, 2016 11:20 am
Contact:

Re: Emacs Setup?

Post 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?
User avatar
CrackedP0t
Citizen
Posts: 69
Joined: Wed May 07, 2014 4:01 am
Contact:

Re: Emacs Setup?

Post 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 :)
/人 ◕‿‿◕ 人\
Here, have an umlaut. Ö
User avatar
Duck Duckinson
Prole
Posts: 6
Joined: Sun Jul 15, 2018 1:23 pm

Re: Emacs Setup?

Post by Duck Duckinson »

Just to add.
The "love-minor-mode" comes with the bindings M-p to run (play) the Löve2D project.
asommer
Prole
Posts: 2
Joined: Sun Jul 29, 2018 3:56 pm

Re: Emacs Setup?

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests