Skip to content

Commit

Permalink
properly bind C-c C-z and C-c C-s to console for all file types in a …
Browse files Browse the repository at this point in the history
…project
  • Loading branch information
Remco van 't Veer committed Oct 11, 2010
1 parent 1be3e78 commit 6e78662
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions rails-ui.el
Expand Up @@ -253,6 +253,8 @@
((rails-key "\C-c e") 'rails-script:generate)
((rails-key "\C-c x") 'rails-script:destroy)
((rails-key "\C-c s c") 'rails-script:console)
((kbd "C-c C-s") 'rails-script:console)
((kbd "C-c C-z") 'rails-script:console)
((rails-key "\C-c s b") 'rails-script:breakpointer)
((rails-key "\C-c s s") 'rails-run-sql)
((rails-key "\C-c w s") 'rails-ws:toggle-start-stop)
Expand Down
6 changes: 1 addition & 5 deletions rails.el
Expand Up @@ -516,11 +516,7 @@ necessary."
(local-set-key (kbd "C-:") 'ruby-toggle-string<>simbol)
(local-set-key (if rails-use-another-define-key
(kbd "RET") (kbd "<return>"))
'ruby-newline-and-indent)

(when (fboundp 'inf-ruby-mode)
(local-set-key (kbd "C-c C-s") 'rails-script:console)
(local-set-key (kbd "C-c C-z") 'rails-script:console)))))
'ruby-newline-and-indent))))

(add-hook 'speedbar-mode-hook
(lambda()
Expand Down

0 comments on commit 6e78662

Please sign in to comment.