branch: elpa/inf-ruby commit ff662e3fb720138a3c966e63c691c89e15c1233c Author: Jury Paliakou <x...@icloud.com> Commit: GitHub <nore...@github.com>
Implement ruby-quit (#185) New command and binding for it. --- inf-ruby.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inf-ruby.el b/inf-ruby.el index 142eea015c..77532589eb 100755 --- a/inf-ruby.el +++ b/inf-ruby.el @@ -219,6 +219,7 @@ next one.") (define-key map (kbd "C-c C-l") 'ruby-load-file) (define-key map (kbd "C-c C-k") 'ruby-load-current-file) (define-key map (kbd "C-c C-s") 'inf-ruby) + (define-key map (kbd "C-c C-q") 'ruby-quit) (easy-menu-define inf-ruby-minor-mode-menu map @@ -704,6 +705,11 @@ Optionally provide FILE and LINE metadata to Ruby." inf-ruby-eval-binding file-and-lineno)))))) +(defun ruby-quit () + "Send 'exit' to the inferior Ruby process" + (interactive) + (ruby-send-string "exit")) + (defun ruby-send-definition () "Send the current definition to the inferior Ruby process." (interactive)