branch: elpa/typst-ts-mode commit 74d210c8c3769fafccef4b5041291e4460b93042 Author: Huan Nguyen <nguyenthieuh...@gmail.com> Commit: Huan Nguyen <nguyenthieuh...@gmail.com>
fix: Indent the inserted heading. --- typst-ts-mode.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/typst-ts-mode.el b/typst-ts-mode.el index 0c08b44426..2b5d84828e 100644 --- a/typst-ts-mode.el +++ b/typst-ts-mode.el @@ -1045,6 +1045,8 @@ When there is no section it will insert a heading after current point." (end-of-line) (forward-line 1)) (insert heading-level " ") + (indent-according-to-mode) + ;; something can be below the end of section (save-excursion (newline))))