trivial indent
1.0.0A very simple library to allow indentation hints for SWANK.
Table of Contents
About Trivial-Indent
This allows you to define custom indentation hints for your macros if the one recognised by Slime automatically produces unwanted results.
How To
The only feature of this that you will really need to use is DEFINE-INDENTATION
.
(define-indentation defmacro (4 &lambda &body))
(define-indentation something-more-complex (4 &rest (&whole 2 0 4 &body)))
For more information on how the indentation rule forms work, please refer to the Slime source and documentation. Otherwise just faffing about until it produces the indentation you need works well too.
System Information
Definition Index
-
TRIVIAL-INDENT
- ORG.TYMOONNEXT.RADIANCE.LIB.TRIVIAL-INDENT
- INDENT
No documentation provided.-
EXTERNAL FUNCTION INDENTATION
- SYMBOL
- &REST
Returns the custom defined indentation of a symbol if there is any. SETF-able.
-
EXTERNAL FUNCTION (SETF INDENTATION)
- RULE-FORM
- SYMBOL
- &REST
Sets the indentation hint for a symbol.
-
EXTERNAL FUNCTION INITIALIZE-SLIME
Attempts to initialize slime with our indentation table. If SWANK-INDENTATION is not loaded, this does nothing. It should be safe to call this function regardless of whether SWANK is loaded at all or not. This is automatically called when TRIVIAL-INDENT is loaded.
-
EXTERNAL FUNCTION INITIALIZE-SLY
Attempts to initialize sly with our indentation table. If SLYNK/INDENTATION is not loaded, this does nothing. It should be safe to call this function regardless of whether SLYNK is loaded at all or not. This is automatically called when TRIVIAL-INDENT is loaded.
-
EXTERNAL FUNCTION REMOVE-INDENTATION
- SYMBOL
- &REST
Remove the indentation hint for a symbol.
-
EXTERNAL MACRO DEFINE-INDENTATION
- SYMBOL
- RULE-FORM
- &REST
Define an indentation hint for a symbol. See the SLIME/SWANK documentation for more information on the rules. Example: (define-indentation defmacro (4 &lambda &body))