]> code.delx.au - dotemacs/blobdiff - lisp/my-file-modes.el
js2-refactor package
[dotemacs] / lisp / my-file-modes.el
index 60427a6ffcfd188ce2b9286e57c31129ca34b480..3b75477a9c82af890fba366c3dc4e0fb308632e5 100644 (file)
 (setq js2-mode-show-parse-errors nil)
 (setq js2-mode-show-strict-warnings nil)
 (setq js--declaration-keyword-re "x^") ; declarations should have normal indentation
+(require 'js2-refactor)
+(add-hook 'js2-mode-hook #'js2-refactor-mode)
+(js2r-add-keybindings-with-prefix "C-c C-m")
+(setq js2r-always-insert-parens-around-arrow-function-params t)
+(setq js2r-prefered-quote-type 2)
 (when (require 'tern nil 'noerror)
   (add-hook 'js2-mode-hook (lambda () (tern-mode t))))