Add typescript-mode support to dtrt-indent #2860

Until jscheid/dtrt-indent#51 is merged.
This commit is contained in:
Henrik Lissner 2020-04-09 15:35:41 -04:00
parent 09652762a2
commit aa2096e00c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -384,6 +384,8 @@ files, so we replace calls to `pp' with the much faster `prin1'."
;; Reduced from the default of 5000 for slightly faster analysis
(setq dtrt-indent-max-lines 2000)
;; Add support for more languages
(add-to-list 'dtrt-indent-hook-mapping-list '(typescript-mode javascript typescript-indent-level))
;; always keep tab-width up-to-date
(push '(t tab-width) dtrt-indent-hook-generic-mapping-list)