lispindent
sublime-lispindent is a plugin for sublime text 2/3 that properly indents lisp code.
Details
Installs
- Total 17K
- Win 5K
- Mac 7K
- Linux 4K
Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
sublime-lispindent is a plugin for sublime text 2 that properly indents lisp code.
Installation
With package control (recommended)
Use Sublime Package Control,
the package is called lispindent
.
Manually
- Clone the repository or download the zipfile.
- The resulting folder - either from cloning or unzipping - should be moved to
Installed Packages
inside your data folder.
The location of the data folder varies between systems:
- Linux -
~/.config/sublime-text-2
- OSX -
~/Library/Application Support/Sublime Text 2
- Windows -
%APPDATA%\Sublime Text 2
Supported languages
clojure | .clj, .cljs, .edn |
common lisp | .lsp, .lisp |
hy | .hy |
racket | .rkt, .rktd, .rktl |
scheme | .ss, .scm, .sch |
If your language is not one of the above, open an issue or contact me to get it included.
You can also add your own language or change the existing configurations
in the menu Preferences->Package Settings->Lispindent->Settings
.
For a minimal configuration that should work fine for most languages, I recommend the following:
"<language-name>": {
"detect": ".*\\.(<file-endings>)$",
"default_indent": "two_space",
"regex": "$"
}
Replace <language-name>
with the name of your language.
It does not matter what you write here, as long as it is distinct from
the other languages.
Replace <file-endings>
with the possible file endings for your language.
Note: without the dot!
Delimit endings with |
.
Example: lsp|lisp
for common lisp.
Key bindings
enter | Insert a new line with indentation |
ctrl+i or cmd+i (osx) |
Indent selected lines (or the current line, if there is no selection). |
To change key bindings, open the menu Preferences->Package Settings->Lispindent
.
Select Key Bindings – Default
for windows/linux, or
Key Bindings – OSX
for mac.
License
sublime-lispindent is licensed under the zlib license:
Copyright © 2012 Jonathan Fischer Friberg
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
This notice may not be removed or altered from any source distribution.