diff --git a/emacs/.emacs.d/config/init-ruby.el b/emacs/.emacs.d/config/init-ruby.el index 7f137cf..50554a8 100644 --- a/emacs/.emacs.d/config/init-ruby.el +++ b/emacs/.emacs.d/config/init-ruby.el @@ -27,6 +27,12 @@ (use-package rspec-mode :hook (dired-mode . rspec-dired-mode) + :config + (defun rspec-compile-command-filter-return (output) + (if current-prefix-arg + (read-string "Command: " output) + output)) + (advice-add 'rspec-compile-command :filter-return #'rspec-compile-command-filter-return) :custom (rspec-use-opts-file-when-available nil))