Hi,

Ramkumar Ramachandra writes:
> magit-simple-keys essentially aliases magit-key-mode-popup-* commands
> to sane default functions. It is provided as an alternative to
> magit-key-mode for users who prefer Magit's older behavior. To use,
> simply require magit-simple-keys instead of magit-key-mode in
> magit.el.
> 
> Signed-off-by: Ramkumar Ramachandra <[email protected]>

> +(defun magit-key-mode-generate (term mapping-function)
> +  "Generate alias for the key-group term"
> +  `(defalias ',(intern (concat "magit-key-mode-popup-" (symbol-name term)))
> +       mapping-function))

Er, sorry about that -- this should be:

diff --git a/magit-simple-keys.el b/magit-simple-keys.el
index 8ee787a..bc4841f 100644
--- a/magit-simple-keys.el
+++ b/magit-simple-keys.el
@@ -14,8 +14,9 @@
 
 (defun magit-key-mode-generate (term mapping-function)
   "Generate alias for the key-group term"
-  `(defalias ',(intern (concat "magit-key-mode-popup-" (symbol-name term)))
-       mapping-function))
+  (eval
+   `(defalias ',(intern (concat "magit-key-mode-popup-" (symbol-name term)))
+       mapping-function)))
 
 ;; generate the aliases using the mapping in key-mode-mapping
 (mapc (lambda (g)

Reply via email to