This project adds a minor mode for GNU Emacs that adds tools to help developing games using the LÖVE engine. This minor mode works in conjunction with and requires lua-mode.
LÖVE minor mode provides the following features:
Note: All key sequences have the format C-c C-o <key>
to avoid
conflicts with lua-mode.
The command C-c C-o p
will help create a new project by creating a
conf.lua
file in a given directory. The mode will automatically
create the love.conf()
function the LÖVE engine uses. It will also
fill in the name and identity, important attributes that LÖVE uses for
things such as determining where to save game data.
Pressing C-c C-o d
will open up your browser with LÖVE documentation.
Two customizable variables determine what page the command opens:
-
love-local-documentation-path
: A path to a local copy of the LÖVE documentation which is available for download from the LÖVE website. -
love-wiki-url
: The URL to the official LÖVE wiki.
C-c C-o d
will first attempt to open any local documentation if you
have it. Failing that, it will browse to the online wiki.
By pressing C-c C-o f
you can search the LÖVE forums for any
topics. The variable love-forum-url
contains the URL for the
forums. You can change it if you want, but you should never need to
do so.
Playtest your game-in-progress by pressing M-p
. It will launch the
LÖVE executable defined in the love-exe
variable with the
directory of the file you are currently editing. Output will be
recorded in the *love-output*
buffer for easy inspection.
You can also launch the game from the drop-down menu.
Note that the file you are editing must be in the top level of the game directory for this to work.
The features above are available through a menu by clicking on LÖVE
on the mode line.
When reporting bugs for LÖVE minor mode please include the value of
love-minor-mode-version-number
in your bug report.