Permalink
Browse files

fix js2-mode delete trailing whitespace

  • Loading branch information...
1 parent 5d0f37a commit e73911ad0311f227ca69c93f51ea5647e585d0be @jamorton committed May 24, 2012
Showing with 184 additions and 173 deletions.
  1. +173 −168 extra/js2-mode.el
  2. +11 −5 jonanin-js.el
View
Oops, something went wrong.
View
@@ -8,10 +8,16 @@
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
;; customizations
-(setq js2-pretty-multiline-decl-indentation-p t
- js2-consistent-level-indent-inner-bracket-p t
- js2-enter-indents-newline t
- js2-mirror-mode t
- js2-global-externs '("require" "console" "$" "module" "__dirname" "process"))
+(add-hook 'js2-mode-hook
+ '(lambda ()
+ (setq js2-pretty-multiline-decl-indentation-p t
+ js2-consistent-level-indent-inner-bracket-p t
+ js2-enter-indents-newline t
+ js2-mirror-mode t
+ js2-cleanup-whitespace t
+ js2-global-externs '("require" "console" "$" "exports"
+ "module" "__dirname" "process"))
+ ))
+
(provide 'jonanin-js)

0 comments on commit e73911a

Please sign in to comment.