General cleanup (again)
This commit is contained in:
parent
53c94b8273
commit
f9f0b9a2e4
11 changed files with 84 additions and 85 deletions
|
@ -22,7 +22,7 @@
|
|||
(map! :map js2-mode-map :m "gQ" 'web-beautify-js))
|
||||
|
||||
(use-package js2-refactor
|
||||
:init (add-hook! js2-mode 'emr-initialize)
|
||||
:init (add-hook 'js2-mode-hook 'emr-initialize)
|
||||
:config
|
||||
(require 'emr)
|
||||
(mapc (lambda (x)
|
||||
|
@ -34,7 +34,8 @@
|
|||
(t (if region-p
|
||||
(lambda () (use-region-p))
|
||||
(lambda () (not (use-region-p)))))))
|
||||
(emr-declare-command (intern (format "js2r-%s" (symbol-name command-name)))
|
||||
(emr-declare-command
|
||||
(intern (format "js2r-%s" (symbol-name command-name)))
|
||||
:title title :modes 'js2-mode :predicate predicate)))
|
||||
'((extract-function "extract function" t)
|
||||
(extract-method "extract method" t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue