diff --git a/emacs/.emacs.d/config/init-ruby.el b/emacs/.emacs.d/config/init-ruby.el index 306eac9..2efa2a0 100644 --- a/emacs/.emacs.d/config/init-ruby.el +++ b/emacs/.emacs.d/config/init-ruby.el @@ -60,9 +60,13 @@ "Runs RSpec on all related specs for the Ruby files changed between the current branch and TARGET-BRANCH." (interactive) (rspec--run-verify-changed t)) + (defun rspec-dired-verify-marked () + (interactive) + (rspec-run-multiple-files (dired-get-marked-files) (rspec-core-options))) :general (rspec-mode-map "C-c , g" #'rspec-verify-changed "C-c , G" #'rspec-verify-changed-related) + (rspec-dired-mode-map "C-c , m" #'rspec-dired-verify-marked) (rspec-verifiable-mode-map "C-c , g" #'rspec-verify-changed "C-c , G" #'rspec-verify-changed-related) :custom