Func to add a new key group.

This commit is contained in:
Phil Jackson 2010-09-10 17:32:57 +01:00
parent 8448f8a274
commit 70c3b4de3b

View file

@ -101,6 +101,10 @@
modify this make sure you reset `magit-key-mode-key-maps' to
nil.")
(defun magit-key-mode-add-group (name)
"Add a new group to `magit-key-mode-key-maps'."
(push (list name) magit-key-mode-groups))
(defun magit-key-mode-update-group (for-group thing &rest args)
"Abstraction for setting values in `magit-key-mode-key-maps'."
(let* ((options (magit-key-mode-options-for-group for-group))