From a8a892a019512c053cd08b7e41ea16400be2c7c6 Mon Sep 17 00:00:00 2001 From: Josh Bax Date: Fri, 5 Jul 2024 15:46:06 -0700 Subject: [PATCH] Add npm-manager-mode-map --- npm-manager.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/npm-manager.el b/npm-manager.el index 54edd9f..00f6f08 100644 --- a/npm-manager.el +++ b/npm-manager.el @@ -357,6 +357,16 @@ Returns a string high/medium/low or empty." "Cleanup mode hooks." (remove-hook 'kill-buffer-hook #'npm-manager--remove-package-watch)) +(defvar npm-manager-mode-map + (let ((map (make-sparse-keymap))) + (define-key map "I" #'npm-manager-change-package-type) + (define-key map "A" #'npm-manager-display-audit) + (define-key map "S" #'npm-manager-search) + (define-key map "D" #'npm-manager-uninstall) + (define-key map (kbd "RET") #'npm-manager-info) + map) + "Keymap for `npm-manager-search-mode'.") + (define-derived-mode npm-manager-mode tabulated-list-mode "NPM Manager" "NPM manager major mode." (setq tabulated-list-format [("Package" 48 t)