Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 804e161

Browse files
committed
Merge pull request #124 from milkypostman/v2
Fix help-command bindings in perl & ruby modules
2 parents 6bb1db4 + 602af5f commit 804e161

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/starter-kit-perl.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
(define-key cperl-mode-map (kbd "RET") 'reindent-then-newline-and-indent)
88
(define-key cperl-mode-map (kbd "C-M-h") 'backward-kill-word)))
99

10-
(global-set-key (kbd "C-h P") 'perldoc)
10+
(define-key 'help-command "P" 'perldoc)
1111

1212
(add-to-list 'auto-mode-alist '("\\.p[lm]$" . cperl-mode))
1313
(add-to-list 'auto-mode-alist '("\\.pod$" . pod-mode))

modules/starter-kit-ruby.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
(define-key ruby-mode-map (kbd "RET") 'reindent-then-newline-and-indent)
4949
(define-key ruby-mode-map (kbd "C-M-h") 'backward-kill-word)))
5050

51-
(global-set-key (kbd "C-h S-r") 'ri)
51+
(define-key 'help-command (kbd "S-r") 'ri)
5252

5353
;; Rake files are ruby, too, as are gemspecs, rackup files, etc.
5454
(add-to-list 'auto-mode-alist '("\\.rake$" . ruby-mode))

0 commit comments

Comments
 (0)