From ce2d2cf60413ebbedd58950c0e7b7eee8a39fcca Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 6 Nov 2018 12:05:25 -0500 Subject: [PATCH] Add js2-refactor config --- .emacs.d/init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 170ab3a..3161c37 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -716,7 +716,11 @@ (use-package js2-mode :mode "\\.js\\'" :config - (setq js2-basic-offset 2)) + (setq js2-basic-offset 2) + (use-package js2-refactor + :hook (js2-mode . js2-refactor-mode) + :config + (js2r-add-keybindings-with-prefix "C-c C-m"))) (use-package nm :quelpa (nm :fetcher github :repo "ad1217/nevermore" :branch "fix-deleted")