mac texteditor emacs

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
lex
Prole
Posts: 23
Joined: Fri Nov 28, 2014 4:58 am

mac texteditor emacs

Post by lex »

hello!
I am using a macbook pro and started using the emacs built-in editor
all works okay but for some reason the emacs can't tell that I'm using Lua for love..
Not sure how to install the plug-in ?
https://immerrr.github.io/lua-mode/
tried to see what package I have and did
M-x list-package--command
but it says no match?????
can someone guide me also
can http://www.brew.sh works??
if so how??
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: mac texteditor emacs

Post by s-ol »

that mode should work for editing lua files, but not for running them; you will need to write your own shortcut to run the project or find a LÖVE mode for emacs.

Edit: viewtopic.php?f=4&t=10403 is probably what you need

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
User avatar
rok
Prole
Posts: 36
Joined: Wed Dec 24, 2014 9:12 am
Location: Slovenia

Re: mac texteditor emacs

Post by rok »

lex
Prole
Posts: 23
Joined: Fri Nov 28, 2014 4:58 am

Re: mac texteditor emacs

Post by lex »

thanks for the answers
I like terminal idk why I 'M more confortable lol
wish emacs could highlight the lua syntax it will be easier
that page doesn't tell exactly what to do unless didnt read all (but i did)
anyone there using emacs and lua highlighted please can you help me !
User avatar
Bhane
Prole
Posts: 6
Joined: Sun Feb 01, 2015 7:11 pm

Re: mac texteditor emacs

Post by Bhane »

If you don't want to use the package manager, then download lua-mode.el here:
https://github.com/immerrr/lua-mode/blo ... ua-mode.el
and add it to your emacs load path in your init file like this:

Code: Select all

(add-to-list 'load-path "/path/to/directory/where/lua-mode-el/resides")
you'll also want to add this to your init file:

Code: Select all

    (autoload 'lua-mode "lua-mode" "Lua editing mode." t)
    (add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
    (add-to-list 'interpreter-mode-alist '("lua" . lua-mode))
Good luck!
Post Reply

Who is online

Users browsing this forum: Google [Bot], Imnotaplayer and 195 guests