The trivial-indent Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The trivial-indent Reference Manual

This is the trivial-indent Reference Manual, version 1.0.0, generated automatically by Declt version 2.3 "Robert April" on Tue Feb 20 09:26:58 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

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.


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 trivial-indent

Maintainer

Nicolas Hafner <shinmera@tymoon.eu>

Author

Nicolas Hafner <shinmera@tymoon.eu>

License

Artistic

Description

A very simple library to allow indentation hints for SWANK.

Long Description
Version

1.0.0

Source

trivial-indent.asd (file)

Component

indent.lisp (file)


Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 trivial-indent.asd

Location

trivial-indent.asd

Systems

trivial-indent (system)


Previous: , Up: Lisp files   [Contents][Index]

3.1.2 trivial-indent/indent.lisp

Parent

trivial-indent (system)

Location

indent.lisp

Packages

trivial-indent

Exported Definitions
Internal Definitions

*indentation-hints* (special variable)


Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 trivial-indent

Source

indent.lisp (file)

Nicknames
Use List

common-lisp

Exported Definitions
Internal Definitions

*indentation-hints* (special variable)


Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Macros

Macro: define-indentation SYMBOL RULE-FORM

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))

Package

trivial-indent

Source

indent.lisp (file)


Previous: , Up: Exported definitions   [Contents][Index]

5.1.2 Functions

Function: indentation SYMBOL

Returns the custom defined indentation of a symbol if there is any. SETF-able.

Package

trivial-indent

Source

indent.lisp (file)

Writer

(setf indentation) (function)

Function: (setf indentation) RULE-FORM SYMBOL

Sets the indentation hint for a symbol.

Package

trivial-indent

Source

indent.lisp (file)

Reader

indentation (function)

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.

Package

trivial-indent

Source

indent.lisp (file)

Function: remove-indentation SYMBOL

Remove the indentation hint for a symbol.

Package

trivial-indent

Source

indent.lisp (file)


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Special variables

Special Variable: *indentation-hints*
Package

trivial-indent

Source

indent.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   F   L   T  
Index Entry  Section

F
File, Lisp, trivial-indent.asd: The trivial-indent<dot>asd file
File, Lisp, trivial-indent/indent.lisp: The trivial-indent/indent<dot>lisp file

L
Lisp File, trivial-indent.asd: The trivial-indent<dot>asd file
Lisp File, trivial-indent/indent.lisp: The trivial-indent/indent<dot>lisp file

T
trivial-indent.asd: The trivial-indent<dot>asd file
trivial-indent/indent.lisp: The trivial-indent/indent<dot>lisp file

Jump to:   F   L   T  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   (  
D   F   I   M   R  
Index Entry  Section

(
(setf indentation): Exported functions

D
define-indentation: Exported macros

F
Function, (setf indentation): Exported functions
Function, indentation: Exported functions
Function, initialize-slime: Exported functions
Function, remove-indentation: Exported functions

I
indentation: Exported functions
initialize-slime: Exported functions

M
Macro, define-indentation: Exported macros

R
remove-indentation: Exported functions

Jump to:   (  
D   F   I   M   R  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *  
S  
Index Entry  Section

*
*indentation-hints*: Internal special variables

S
Special Variable, *indentation-hints*: Internal special variables

Jump to:   *  
S  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   P   S   T  
Index Entry  Section

P
Package, trivial-indent: The trivial-indent package

S
System, trivial-indent: The trivial-indent system

T
trivial-indent: The trivial-indent system
trivial-indent: The trivial-indent package

Jump to:   P   S   T