Skip to content

Commit

Permalink
Add npm-manager-mode-map
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbax189 committed Jul 5, 2024
1 parent f3ef24c commit a8a892a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions npm-manager.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a8a892a

Please sign in to comment.