From afb7e260a9b8580fe67a1b83377cf2bab81cec1a Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 1 Apr 2026 16:37:45 +0200 Subject: emacs: Add slash at the end of regexp --- .config/emacs/modules/mm-humanwave.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/emacs/modules/mm-humanwave.el b/.config/emacs/modules/mm-humanwave.el index ad79703..d52546e 100644 --- a/.config/emacs/modules/mm-humanwave.el +++ b/.config/emacs/modules/mm-humanwave.el @@ -88,7 +88,7 @@ If METHOD is nil, a GET request is performed." (defun mm-humanwave-handler-topic-imenu-setup () "Setup custom imenu index for `python-ts-mode'." - (when (and (string-match-p "/handlers?" (or (buffer-file-name) "")) + (when (and (string-match-p "/handlers?/" (or (buffer-file-name) "")) (derived-mode-p #'python-ts-mode)) (setq-local imenu-create-index-function #'mm-humanwave-handler-topic-imenu-index))) -- cgit v1.2.3