zenscript-mode is an Emacs major mode for editing
ZenScript code.
It provides font-lock, indentation, syntax checking and, currently primitive, code completion.
zenscript-mode can currently be installed in the following ways:
The recommended way to install zenscript-mode is with package.el,
the built-in package manager for Emacs.
Zenscript Mode is available on both MELPA and MELPA stable.
With MELPA or MELPA stable set up,
and having run
M-x package-refresh-contents RET
install with the command:
M-x package-install RET zenscript-mode RET
To install zenscript-mode manually:
- Clone this repo into your
~/.emacs.d/folder. - Add the following to your
~/.emacs.d/init.elor~/.emacsfile:(add-to-list 'load-path "~/.emacs.d/zenscript-mode") (require 'zenscript-mode)
To make the most of zenscript-mode, it is important to provide
it ZenScript dumps. To do this, in game, run the commands:
/ct dumpzs json and /ct dumpzs html.
Then, when editing scripts from the scripts/ folder of that instance,
zenscript-mode will be able to provide code completion.
If zenscript-mode cannot find these files, it will ask where they are.
If you do not have these files, C-g will quit, and zenscript-mode
won't provide code completion.