From ba44e6db1ce03c397a1ecc2bdeb5f5a5e32cdf80 Mon Sep 17 00:00:00 2001 From: Donald Ephraim Curtis Date: Fri, 16 Dec 2011 21:32:07 -0600 Subject: [PATCH] Use help-command variable to change apropos. Instead of doing a global-set-key for C-h, use the help-command variable. This way, if people have C-h bound to something else, package.el will not throw an error while installing this package. --- modules/starter-kit-bindings.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/starter-kit-bindings.el b/modules/starter-kit-bindings.el index 2383456860..12a54ff745 100644 --- a/modules/starter-kit-bindings.el +++ b/modules/starter-kit-bindings.el @@ -91,7 +91,7 @@ (global-set-key (kbd "C-c x") 'execute-extended-command) ;; Help should search more than just commands - (global-set-key (kbd "C-h a") 'apropos) + (define-key 'help-command "a" 'apropos) ;; Should be able to eval-and-replace anywhere. (global-set-key (kbd "C-c e") 'esk-eval-and-replace)