Diminish tern + ruby-toggle-block
This commit is contained in:
parent
1d574bf3aa
commit
e88293f2c5
2 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,7 @@
|
|||
(setq mode-name "JS2")))
|
||||
|
||||
(use-package tern
|
||||
:diminish (tern-mode . "tern")
|
||||
:diminish tern-mode
|
||||
:commands tern-mode
|
||||
:init (add-hook! js2-mode 'tern-mode)
|
||||
:config
|
||||
|
|
|
@ -32,6 +32,10 @@
|
|||
:init (add-hook! enh-ruby-mode 'emr-initialize)
|
||||
:config
|
||||
(after! emr
|
||||
(emr-declare-command 'ruby-toggle-block
|
||||
:title "toggle block"
|
||||
:modes 'enh-ruby-mode
|
||||
:predicate (lambda () (not (use-region-p))))
|
||||
(emr-declare-command 'ruby-refactor-extract-to-method
|
||||
:title "extract method"
|
||||
:modes 'enh-ruby-mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue