]> code.delx.au - dotemacs/commitdiff
javascript declarations should have normal indentation
authorJames Bunton <jamesbunton@delx.net.au>
Mon, 19 Sep 2016 12:16:55 +0000 (22:16 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Mon, 19 Sep 2016 12:16:55 +0000 (22:16 +1000)
lisp/my-file-modes.el

index 0198d15193afe6850d3641e20e6465d754ee153e..5ca80fec635f2cc7c5b0c7ac32fd9900498c9d8c 100644 (file)
@@ -33,6 +33,7 @@
 (setq js2-highlight-external-variables nil)
 (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 'markdown-mode)
 (define-key markdown-mode-map (kbd "M-{") 'markdown-beginning-of-block)