dir-locals.el: Add indentation for Guix keywords.
* .dir-locals.el (scheme-mode): Add indentation rules for Guix package definitions.
This commit is contained in:
parent
d42f99e6cf
commit
e9672324f3
|
@ -34,6 +34,20 @@
|
||||||
(scheme-mode
|
(scheme-mode
|
||||||
.
|
.
|
||||||
((geiser-active-implementations . (guile))
|
((geiser-active-implementations . (guile))
|
||||||
|
|
||||||
|
;; Guix package
|
||||||
|
(eval . (put 'package 'scheme-indent-function 0))
|
||||||
|
(eval . (put 'origin 'scheme-indent-function 0))
|
||||||
|
|
||||||
|
;; Guix 'modify-phases' and its keywords.
|
||||||
|
(eval . (put 'modify-phases 'scheme-indent-function 1))
|
||||||
|
(eval . (put 'replace 'scheme-indent-function 1))
|
||||||
|
(eval . (put 'add-before 'scheme-indent-function 2))
|
||||||
|
(eval . (put 'add-after 'scheme-indent-function 2))
|
||||||
|
|
||||||
|
;; Guix utils
|
||||||
|
(eval . (put 'substitute* 'scheme-indent-function 1))
|
||||||
|
|
||||||
(eval
|
(eval
|
||||||
.
|
.
|
||||||
(progn
|
(progn
|
||||||
|
|
Loading…
Reference in a new issue