lang/ruby: auto enter inf-ruby when breakpoint detected
This commit is contained in:
parent
4bd8f5f89e
commit
ac334a053e
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@
|
||||||
(add-to-list 'company-dabbrev-code-modes 'enh-ruby-mode nil #'eq)
|
(add-to-list 'company-dabbrev-code-modes 'enh-ruby-mode nil #'eq)
|
||||||
(add-to-list 'company-dabbrev-code-modes 'ruby-mode nil #'eq))
|
(add-to-list 'company-dabbrev-code-modes 'ruby-mode nil #'eq))
|
||||||
|
|
||||||
|
(after! inf-ruby
|
||||||
|
;; switch to inf-ruby from compile if we detect a breakpoint has been hit
|
||||||
|
(add-hook 'compilation-filter-hook 'inf-ruby-auto-enter))
|
||||||
|
|
||||||
;; so class and module pairs work
|
;; so class and module pairs work
|
||||||
(setq-hook! (ruby-mode enh-ruby-mode) sp-max-pair-length 6))
|
(setq-hook! (ruby-mode enh-ruby-mode) sp-max-pair-length 6))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue