From 6e78662ae4070c12f6ad0084d6cd245489d565b7 Mon Sep 17 00:00:00 2001 From: Remco van 't Veer Date: Mon, 11 Oct 2010 10:40:16 +0200 Subject: [PATCH] properly bind C-c C-z and C-c C-s to console for all file types in a project --- rails-ui.el | 2 ++ rails.el | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/rails-ui.el b/rails-ui.el index 0d3512c..a070c00 100644 --- a/rails-ui.el +++ b/rails-ui.el @@ -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) diff --git a/rails.el b/rails.el index f2580b3..e7f2c4b 100644 --- a/rails.el +++ b/rails.el @@ -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 "")) - '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()