Page 1 of 1

mac texteditor emacs

Posted: Wed Dec 09, 2015 6:54 am
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??

Re: mac texteditor emacs

Posted: Wed Dec 09, 2015 9:21 am
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

Re: mac texteditor emacs

Posted: Wed Dec 09, 2015 4:17 pm
by rok

Re: mac texteditor emacs

Posted: Wed Dec 09, 2015 4:35 pm
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 !

Re: mac texteditor emacs

Posted: Wed Dec 16, 2015 2:41 am
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!