Skip to content
This repository

Fix help-command bindings in perl & ruby modules #124

Merged
merged 1 commit into from about 2 years ago

2 participants

Donald Ephraim Curtis Phil Hagelberg
Donald Ephraim Curtis

If you need more info let me know. Thanks.

Phil Hagelberg technomancy merged commit 804e161 into from February 02, 2012
Phil Hagelberg technomancy closed this February 02, 2012
Phil Hagelberg
Owner

Good catch; thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jan 28, 2012
Donald Ephraim Curtis Fix help-command bindings. 602af5f
This page is out of date. Refresh to see the latest.
2  modules/starter-kit-perl.el
@@ -7,7 +7,7 @@
7 7
      (define-key cperl-mode-map (kbd "RET") 'reindent-then-newline-and-indent)
8 8
      (define-key cperl-mode-map (kbd "C-M-h") 'backward-kill-word)))
9 9
 
10  
-(global-set-key (kbd "C-h P") 'perldoc)
  10
+(define-key 'help-command "P" 'perldoc)
11 11
 
12 12
 (add-to-list 'auto-mode-alist '("\\.p[lm]$" . cperl-mode))
13 13
 (add-to-list 'auto-mode-alist '("\\.pod$" . pod-mode))
2  modules/starter-kit-ruby.el
@@ -48,7 +48,7 @@
48 48
        (define-key ruby-mode-map (kbd "RET") 'reindent-then-newline-and-indent)
49 49
        (define-key ruby-mode-map (kbd "C-M-h") 'backward-kill-word)))
50 50
 
51  
-  (global-set-key (kbd "C-h S-r") 'ri)
  51
+  (define-key 'help-command (kbd "S-r") 'ri)
52 52
 
53 53
   ;; Rake files are ruby, too, as are gemspecs, rackup files, etc.
54 54
   (add-to-list 'auto-mode-alist '("\\.rake$" . ruby-mode))
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.