Permalink
Browse files

Merge pull request #124 from milkypostman/v2

Fix help-command bindings in perl & ruby modules
  • Loading branch information...
2 parents 6bb1db4 + 602af5f commit 804e161bd1746f6e425dc047202de03964f6e97a @technomancy committed Feb 2, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 modules/starter-kit-perl.el
  2. +1 −1 modules/starter-kit-ruby.el
@@ -7,7 +7,7 @@
(define-key cperl-mode-map (kbd "RET") 'reindent-then-newline-and-indent)
(define-key cperl-mode-map (kbd "C-M-h") 'backward-kill-word)))
-(global-set-key (kbd "C-h P") 'perldoc)
+(define-key 'help-command "P" 'perldoc)
(add-to-list 'auto-mode-alist '("\\.p[lm]$" . cperl-mode))
(add-to-list 'auto-mode-alist '("\\.pod$" . pod-mode))
@@ -48,7 +48,7 @@
(define-key ruby-mode-map (kbd "RET") 'reindent-then-newline-and-indent)
(define-key ruby-mode-map (kbd "C-M-h") 'backward-kill-word)))
- (global-set-key (kbd "C-h S-r") 'ri)
+ (define-key 'help-command (kbd "S-r") 'ri)
;; Rake files are ruby, too, as are gemspecs, rackup files, etc.
(add-to-list 'auto-mode-alist '("\\.rake$" . ruby-mode))

0 comments on commit 804e161

Please sign in to comment.