From 82a6fc93c5b43f0c1fdf1156bf72f44bbe87e9ed Mon Sep 17 00:00:00 2001 From: Kevin Kainan Li Date: Tue, 12 May 2026 16:08:59 -0400 Subject: [PATCH] imenu: also support const and static items --- rust-prog-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-prog-mode.el b/rust-prog-mode.el index ea6ef82..b338c22 100644 --- a/rust-prog-mode.el +++ b/rust-prog-mode.el @@ -141,7 +141,7 @@ to the function arguments. When nil, `->' will be indented one level." (defvar rust-imenu-generic-expression (append (mapcar #'(lambda (x) (list (capitalize x) (rust-re-item-def-imenu x) 1)) - '("enum" "struct" "union" "type" "mod" "fn" "trait" "impl")) + '("enum" "struct" "union" "type" "mod" "fn" "trait" "impl" "const" "static")) `(("Macro" ,(rust-re-item-def-imenu "macro_rules!") 1))) "Value for `imenu-generic-expression' in Rust mode.