Fix lazy-loading of ruby-test-mode
This change fixes a syntax mistake in the use-package declaration of ruby-test-mode that causes the package to be loaded immediately, instead of deferring the load until the first ruby file is visited, as is intended.
This commit is contained in:
parent
bd61f2e8a0
commit
ddf7459a02
|
@ -2210,6 +2210,7 @@ Other:
|
||||||
- Added the =seeing-is-believing= package (thanks to Brandon Conway)
|
- Added the =seeing-is-believing= package (thanks to Brandon Conway)
|
||||||
- Added prefixes for ruby major mode keybindings (thanks to Seong Yong-ju)
|
- Added prefixes for ruby major mode keybindings (thanks to Seong Yong-ju)
|
||||||
- Added =lsp= and =dap= support (thanks to Billy Kaplan)
|
- Added =lsp= and =dap= support (thanks to Billy Kaplan)
|
||||||
|
- Fixed lazy loading of =ruby-test-mode= (thanks to Michael Franz Aigner)
|
||||||
**** Ruby on Rails
|
**** Ruby on Rails
|
||||||
- Changed leader keys to be configured for the =projectile-rails-mode= minor
|
- Changed leader keys to be configured for the =projectile-rails-mode= minor
|
||||||
mode instead of =ruby-mode= and =enh-ruby-mode= so that the key bindings will
|
mode instead of =ruby-mode= and =enh-ruby-mode= so that the key bindings will
|
||||||
|
|
|
@ -304,7 +304,7 @@
|
||||||
|
|
||||||
(defun ruby/init-ruby-test-mode ()
|
(defun ruby/init-ruby-test-mode ()
|
||||||
"Define keybindings for ruby test mode"
|
"Define keybindings for ruby test mode"
|
||||||
(use-package ruby-test-mode)
|
(use-package ruby-test-mode
|
||||||
:defer t
|
:defer t
|
||||||
:init (spacemacs/add-to-hooks 'spacemacs//ruby-enable-ruby-test-mode
|
:init (spacemacs/add-to-hooks 'spacemacs//ruby-enable-ruby-test-mode
|
||||||
'(ruby-mode-local-vars-hook
|
'(ruby-mode-local-vars-hook
|
||||||
|
@ -319,7 +319,7 @@
|
||||||
(dolist (mode '(ruby-mode enh-ruby-mode))
|
(dolist (mode '(ruby-mode enh-ruby-mode))
|
||||||
(spacemacs/set-leader-keys-for-major-mode mode
|
(spacemacs/set-leader-keys-for-major-mode mode
|
||||||
"tb" 'ruby-test-run
|
"tb" 'ruby-test-run
|
||||||
"tt" 'ruby-test-run-at-point))))
|
"tt" 'ruby-test-run-at-point)))))
|
||||||
|
|
||||||
(defun ruby/init-rvm ()
|
(defun ruby/init-rvm ()
|
||||||
(use-package rvm
|
(use-package rvm
|
||||||
|
|
Loading…
Reference in a new issue