emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/kubed 38a8f984fb 15/70: ; Teach Imenu about 'kubed-defi


From: ELPA Syncer
Subject: [elpa] externals/kubed 38a8f984fb 15/70: ; Teach Imenu about 'kubed-define-resource'
Date: Tue, 6 Aug 2024 06:58:26 -0400 (EDT)

branch: externals/kubed
commit 38a8f984fb4369fd7d0fe7914e7a74e2fc96f48b
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>

    ; Teach Imenu about 'kubed-define-resource'
---
 kubed.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/kubed.el b/kubed.el
index ae5a260940..d3cea4efa6 100644
--- a/kubed.el
+++ b/kubed.el
@@ -894,6 +894,14 @@ Optional argument DEFAULT is the minibuffer default 
argument." resource)
          "E" #',expl-cmd
          ,@prf-keys))))
 
+(setf
+ ;; Teach Imenu about `kubed-define-resource'.
+ (alist-get "KubedResource" lisp-imenu-generic-expression nil nil #'equal)
+ (list (concat "^\\s-*(kubed-define-resource\\s-+\\("
+               lisp-mode-symbol-regexp
+               "\\)")
+       1))
+
 (defmacro kubed--static-if (condition then-form &rest else-forms)
   "A conditional compilation macro.
 Evaluate CONDITION at macro-expansion time.  If it is non-nil, expand



reply via email to

[Prev in Thread] Current Thread [Next in Thread]