Add typescript-mode support to dtrt-indent #2860
Until jscheid/dtrt-indent#51 is merged.
This commit is contained in:
parent
09652762a2
commit
aa2096e00c
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue