diff options
author | Mark H Weaver <mhw@netris.org> | 2015-10-20 14:11:43 -0400 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2015-10-20 14:11:43 -0400 |
commit | 7c6fb733e91675d1a0b80e863a422a55d1f3aa5d (patch) | |
tree | a81716c171ac75e47eed09c76e2c7de45d5de28f /emacs/guix-devel.el | |
parent | e38a71eea9abaa4e03ef1d7081104f93d26e31b3 (diff) | |
parent | b1599b5299c82230722ec91dbeabcf19e3399c15 (diff) | |
download | patches-7c6fb733e91675d1a0b80e863a422a55d1f3aa5d.tar patches-7c6fb733e91675d1a0b80e863a422a55d1f3aa5d.tar.gz |
Merge branch 'master' into dbus-update
Diffstat (limited to 'emacs/guix-devel.el')
-rw-r--r-- | emacs/guix-devel.el | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/emacs/guix-devel.el b/emacs/guix-devel.el index f3ad4b9255..170ce1ad54 100644 --- a/emacs/guix-devel.el +++ b/emacs/guix-devel.el @@ -254,6 +254,20 @@ Each rule should have a form (SYMBOL VALUE). See `put' for details." 0))) (lisp-indent-specform count state indent-point normal-indent))) +(defun guix-devel-indent-modify-phases-keyword (count) + "Return indentation function for 'modify-phases' keywords." + (lambda (state indent-point normal-indent) + (when (ignore-errors + (goto-char (nth 1 state)) ; start of keyword sexp + (backward-up-list) + (looking-at "(modify-phases\\>")) + (lisp-indent-specform count state indent-point normal-indent)))) + +(defalias 'guix-devel-indent-modify-phases-keyword-1 + (guix-devel-indent-modify-phases-keyword 1)) +(defalias 'guix-devel-indent-modify-phases-keyword-2 + (guix-devel-indent-modify-phases-keyword 2)) + (guix-devel-scheme-indent (bag 0) (build-system 0) @@ -293,7 +307,12 @@ Each rule should have a form (SYMBOL VALUE). See `put' for details." (with-monad 1) (with-mutex 1) (with-store 1) - (wrap-program 1)) + (wrap-program 1) + + ;; 'modify-phases' keywords: + (replace 'guix-devel-indent-modify-phases-keyword-1) + (add-after 'guix-devel-indent-modify-phases-keyword-2) + (add-before 'guix-devel-indent-modify-phases-keyword-2)) (defvar guix-devel-keys-map |