guix_mirror_bot pushed a commit to branch master
in repository guix.
commit ae4b4a7f963c542255ff9c48db338e21e4c3bb1e
Author: Sergio Pastor Pérez <[email protected]>
AuthorDate: Fri Nov 13 17:21:25 2026 +0100
.dir-locals.el: Configure IMenu to find gexp compilers and tests.
* .dir-locals.el (scheme-mode): Set 'imenu-generic-expression' for finding
gexp compilers and tests.
Signed-off-by: Ludovic Courtès <[email protected]>
---
.dir-locals.el | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/.dir-locals.el b/.dir-locals.el
index 6dcc6e4ed13..d6d5ff99ae2 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -18,6 +18,7 @@
;;; Copyright © 2024 Nicolas Graves <[email protected]>
;;; Copyright © 2025 David Elsing <[email protected]>
;;; Copyright © 2025 Hilton Chain <[email protected]>
+;;; Copyright © 2026 Sergio Pastor Pérez <[email protected]>
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
@@ -97,6 +98,26 @@
.
((indent-tabs-mode . nil)
+ (eval . (setq imenu-generic-expression
+ (append
+ `(("Gexp compiler"
+ ,(rx bol (zero-or-more space)
+ "(define-gexp-compiler"
+ (one-or-more space)
+ (zero-or-one "(")
+ (group (one-or-more (or word (syntax symbol)))))
+ 1)
+ ("Test"
+ ,(rx bol (zero-or-more space)
+ "(test-"
+ (or "eq" "equal" "error" "assert" "equalm" "assertm")
+ (one-or-more space)
+ ?\"
+ (group (one-or-more (not (any ?\"))))
+ ?\")
+ 1))
+ imenu-generic-expression)))
+
;; Emacs 28 changed the behavior of 'lisp-fill-paragraph', which causes the
;; first line of package descriptions to extrude past 'fill-column', and
;; somehow that is deemed more correct upstream (see: