From 38a8f984fb4369fd7d0fe7914e7a74e2fc96f48b Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Mon, 29 Jul 2024 16:35:47 +0200 Subject: [PATCH] ; Teach Imenu about 'kubed-define-resource' --- kubed.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kubed.el b/kubed.el index ae5a260..d3cea4e 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 -- 2.39.2