A emacs mode for Linden Scripting Language. This package is named xlsl-mode.
Features
- Graphical menu.
- Syntax coloring.
- LSL style code formatting (customizable).
- Command to Comment/Uncomment code.
- Keyword completion.
- Function Templates (via YASnippet)
- LSL Reference lookup (via lslwiki.net or wiki.secondlife.com)
- Syntax Checking (via lslint)
- Convert color between RGB hex and LSL vector.
- Coloring vector <x,y,z> data type for working with RGB.
- Easy keyboard shortcuts for Copying to Second Life client.
- Up-to-date LSL language keywords.
Install
- Download the elisp file. (rename the file to “xlsl-mode.el”)
- Open the file.
- Type Alt+x eval-buffer
You are done. Now, open any LSL source code, then type Alt+x xlsl-mode, you'll have syntax coloring and other features.
To have emacs automatically load the file when it restarts, and automatically use the mode when opening files ending in “.lsl”, put the following lines in your emacs init file “.emacs”:
(add-to-list 'load-path "/path/to/parent/dir/") ;; make sure dir is the file's parent
(autoload 'xlsl-mode "xlsl-mode" "Load xlsl-mode for LSL." t)
(add-to-list 'auto-mode-alist '("\\.lsl\\'" . xlsl-mode))Then, restart emacs.
Documentation
For documentation and usage tips, see: http://xahlee.org/sl/ls-emacs.html
Bugs, Wish List
For any problem or wish list, please post it to: http://code.google.com/p/lsl-mode/issues/list