X-Git-Url: https://code.delx.au/dotemacs/blobdiff_plain/505f9e66e20fd20a0541a2163206b178cd7c49ca..20f7662c41bb1f1fc3508a32184cb21bcd252376:/lisp/my-file-modes.el diff --git a/lisp/my-file-modes.el b/lisp/my-file-modes.el index 60427a6..23bba37 100644 --- a/lisp/my-file-modes.el +++ b/lisp/my-file-modes.el @@ -35,6 +35,11 @@ (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)))) @@ -67,4 +72,7 @@ (when (require 'stumpwm-mode nil 'noerror) (add-to-list 'auto-mode-alist '("/\\.stumpwmrc\\'" . stumpwm-mode))) +(require 'wgrep) +(setq wgrep-auto-save-buffer t) + (require 'yaml-mode)