diff options
author | Tobias Geerinckx-Rice <me@tobias.gr> | 2020-08-18 15:13:12 +0200 |
---|---|---|
committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2020-08-18 23:54:55 +0200 |
commit | 275e66b8b47a6e085a6f359b69af424bc9f6b13d (patch) | |
tree | e66071ebae31e469b8f4a48c29c394acbca1c997 /etc/indent-code.el | |
parent | c524972606a50d2dcb5f10477c2524591b7fa39f (diff) | |
download | guix-275e66b8b47a6e085a6f359b69af424bc9f6b13d.tar.gz |
etc: indent-code.el: Match not only ‘(define-public’.
* etc/indent-code.el (main): Also match ‘(define’, as intended.
Diffstat (limited to 'etc/indent-code.el')
-rwxr-xr-x | etc/indent-code.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/indent-code.el b/etc/indent-code.el index 255ffb126b..84b15b356f 100755 --- a/etc/indent-code.el +++ b/etc/indent-code.el @@ -4,6 +4,7 @@ ;; Copyright © 2017 Alex Kost <alezost@gmail.com> ;; Copyright © 2017 Ludovic Courtès <ludo@gnu.org> ;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com> +;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr> ;; This file is part of GNU Guix. @@ -93,7 +94,7 @@ ;; Indent the definition of PACKAGE-NAME in FILE-NAME. (find-file file-name) (goto-char (point-min)) - (if (re-search-forward (concat "^(define\\(-public\\) +" + (if (re-search-forward (concat "^(define\\(\\|-public\\) +" package-name) nil t) (let ((indent-tabs-mode nil)) |