Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Kaali/pico8-mode
PICO-8 mode for Emacs
https://github.com/Kaali/pico8-mode
Last synced: 2 months ago
JSON representation
PICO-8 mode for Emacs
- Host: GitHub
- URL: https://github.com/Kaali/pico8-mode
- Owner: Kaali
- Created: 2018-02-18T08:14:23.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-19T03:28:57.000Z (about 1 year ago)
- Last Synced: 2024-08-02T06:17:38.512Z (6 months ago)
- Language: Emacs Lisp
- Size: 12.7 KB
- Stars: 26
- Watchers: 3
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
- awesome-PICO-8 - pico8-mode
README
* PICO-8 mode
*pico8-mode* is a major mode for Emacs which supports [[https://www.lexaloffle.com/pico-8.php][PICO-8]] .p8 file
code editing. It's based on [[https://github.com/immerrr/lua-mode][lua-mode]].** Features
- Sets a dimmer color for non-Lua sections of the .p8 file
- Offers basic auto-complete
- Supports [[https://github.com/company-mode/company-mode][company-mode]] and completion-at-point
- Completes PICO-8 builtins, functions, variables and arguments
with some scoping
- Navigation with /xref/
- Documentation with /eldoc/
- If PICO-8 manual path is set, then it shows builtin
documentation from there.
- Renders sprites and labels inline in the buffer.** Setup
For now do an manual installation, as it's not in MELPA.
Customization variables are available at group *pico-8*.
For documentation lookup to work, set *pico8-documentation-file* to
an absolute path to "pico-8.txt" which is included with PICO-8.
After setting this variable, run *pico8-build-documentation* function
to force a rebuild. This happens automatically when the mode is
loaded.To be able to run PICO-8 from Emacs, set the *pico8-executable-path* variable
to the =pico8= executable. E.g. =~/Downloads/pico-8/pico8=. Call
*pico8-run-cartridge* and *pico8-kill-process* respectively.*** Requirements
- [[https://github.com/immerrr/lua-mode][lua-mode]]
- Emacs >= 25.1 (tested with 26)** Notes
This mode uses some internal functions from [[https://github.com/immerrr/lua-mode][lua-mode]], which means
that it might fail if lua-mode updates in an incompatible way.