From 99fc8f1d9639236f06c7f80b29539a0dd135b47e Mon Sep 17 00:00:00 2001 From: "W." Date: Wed, 21 Aug 2024 20:43:35 +0000 Subject: [PATCH] Rename kubel-yaml-editing-map to kubel-yaml-editing-mode-map. (#136) In order to be picked by define-derived-mode, the map needs to have name composed of the full mode name (including -mode) and -map suffix. In my testing it worked, because I already defined and eval-ed it before renaming. Downsides of REPL-based development I guess. * kubel.el (kubel-yaml-editing-mode-map): Rename from kubel-yaml-editing-map. --- kubel.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubel.el b/kubel.el index 0da5624..a09bce1 100644 --- a/kubel.el +++ b/kubel.el @@ -655,7 +655,7 @@ TYPENAME is the resource type/name." (yes-or-no-p "Resource modified; kill anyway? ")) (kill-buffer (current-buffer)))) -(defvar kubel-yaml-editing-map +(defvar kubel-yaml-editing-mode-map (let ((map (make-sparse-keymap))) (define-key map (kbd "C-c C-c") #'kubel-apply) (define-key map (kbd "C-c C-k") #'kubel-kill-buffer) @@ -669,7 +669,7 @@ TYPENAME is the resource type/name." Allows simple apply of the changes made. -\\{kubel-yaml-editing-map}") +\\{kubel-yaml-editing-mode-map}") (defun kubel-apply () "Save the current buffer to a temp file and try to kubectl apply it."