VS
debug-on-entry
для typescript-insert-and-indent
функция выглядит так:(defun typescript-insert-and-indent (key)
"Run the command bound to KEY, and indent if necessary.
Indentation does not take place if point is in a string or
comment."
(interactive (list (this-command-keys)))
(call-interactively (lookup-key (current-global-map) key))
(let ((syntax (save-restriction (widen) (syntax-ppss))))
(when (or (and (not (nth 8 syntax))
typescript-auto-indent-flag)
(and (nth 4 syntax)
(eq (current-column)
(1+ (current-indentation)))))
(indent-according-to-mode))))
(put 'typescript-insert-and-indent 'delete-selection t)
и если я правильно понимаю меня в ней должен интересовать
typescript-auto-indent-flag