From d5c07e813e9ec3f81692b72d521db8baa09bf530 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 9 Jul 2018 20:00:59 -0700 Subject: [PATCH] Add js2-refactor keybindings --- emacs/.emacs.d/init/oni-js2-init.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emacs/.emacs.d/init/oni-js2-init.el b/emacs/.emacs.d/init/oni-js2-init.el index 4c81f4e..506a2e5 100644 --- a/emacs/.emacs.d/init/oni-js2-init.el +++ b/emacs/.emacs.d/init/oni-js2-init.el @@ -25,6 +25,7 @@ ;;; Code: (require 'js2-mode) +(require 'js2-refactor) (setq js2-strict-trailing-comma-warning nil) (setq js2-basic-offset 2) @@ -39,5 +40,7 @@ (add-hook 'js2-mode-hook 'fic-mode) (add-hook 'js2-mode-hook 'whitespace-only-tabs-mode) +(js2r-add-keybindings-with-prefix "C-c r") + (provide 'oni-js2-init) ;;; oni-js2-init.el ends here