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:
Jan (janneke) Nieuwenhuizen 2020-06-10 15:30:04 +02:00 committed by Jan Nieuwenhuizen
parent d42f99e6cf
commit e9672324f3
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

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