mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add typescript-mode support to dtrt-indent #2860
Until jscheid/dtrt-indent#51 is merged.
This commit is contained in:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user