From e56343867b4849565725dfca5518a2ebc5ecce76 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 14 Nov 2024 13:58:45 -0500 Subject: [PATCH] Auto enter inf-ruby from compilation mode when it hits a breakpoint --- emacs/.emacs.d/config/init-ruby.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/config/init-ruby.el b/emacs/.emacs.d/config/init-ruby.el index 7259cf2..cf9ab55 100644 --- a/emacs/.emacs.d/config/init-ruby.el +++ b/emacs/.emacs.d/config/init-ruby.el @@ -18,7 +18,8 @@ :commands (inf-ruby inf-ruby-console-auto) :general ([remap inf-ruby] #'inf-ruby-console-auto) - :hook (after-init . inf-ruby-switch-setup) + :hook ((after-init . inf-ruby-switch-setup) + (compilation-filter . inf-ruby-auto-enter-and-focus)) :config (defun inf-ruby-process-carriage-return (output) (let ((processed (replace-regexp-in-string ".*\r" "" output)))