mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
doc: Add note about .dir-locals.el.
* HACKING (Coding Style): Mention special indentation rules and .dir-locals.el.
This commit is contained in:
parent
e1c5a8357a
commit
1a2e649561
1 changed files with 8 additions and 3 deletions
11
HACKING
11
HACKING
|
@ -115,9 +115,14 @@ In general, we follow the [[http://mumble.net/~campbell/scheme/style.txt][Riastr
|
|||
to describe the conventions mostly used in Guile’s code too. It is very
|
||||
thoughtful and well written, so please do read it.
|
||||
|
||||
In addition, we require all top-level procedures to carry a docstring. This
|
||||
requirement can be relaxed for simple private procedures in the (guix build …)
|
||||
name space, though.
|
||||
Some special forms introduced in Guix, such as the ‘substitute*’ macro, have
|
||||
special indentation rules. These are defined in the .dir-locals.el file,
|
||||
which Emacs automatically uses. If you do not use Emacs, please make sure to
|
||||
let your editor know the rules.
|
||||
|
||||
We require all top-level procedures to carry a docstring. This requirement
|
||||
can be relaxed for simple private procedures in the (guix build …) name space,
|
||||
though.
|
||||
|
||||
Procedures should not have more than four positional parameters. Use keyword
|
||||
parameters for procedures that take more than four parameters.
|
||||
|
|
Loading…
Reference in a new issue