]> code.delx.au - dotemacs/blobdiff - lisp/my-file-modes.el
wgrep mode
[dotemacs] / lisp / my-file-modes.el
index 60427a6ffcfd188ce2b9286e57c31129ca34b480..23bba37e7924bc7ad3f15f9a3545392cba3b436a 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))))
 
@@ -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)