summaryrefslogtreecommitdiff
path: root/lisp/org/ob-octave.el
diff options
context:
space:
mode:
authorTheodor Thornhill <theo@thornhill.no>2023-02-18 23:10:13 +0100
committerTheodor Thornhill <theo@thornhill.no>2023-02-19 20:48:06 +0100
commit2e6093b425e21551806abed746765631a00942d6 (patch)
tree13fa4b3e2cde53136fc2999a076e515eebdca2b8 /lisp/org/ob-octave.el
parentc544df4fa3f217d0039bb9cb38c809c830558c25 (diff)
downloademacs-2e6093b425e21551806abed746765631a00942d6.tar.gz
emacs-2e6093b425e21551806abed746765631a00942d6.tar.bz2
emacs-2e6093b425e21551806abed746765631a00942d6.zip
Adjust jsx indentation
We can use the fact that 'treesit-indent-1' uses 'treesit-node-on' when on a whitespace to set the actual current node as parent. Now we can correctly indent the 'jsx_text' nodes. We also add some more electric-indent-chars so that auto-indenting of jsx behaves a little more fluently. * lisp/progmodes/js.el (js--treesit-indent-rules): Add new rules. (js-ts-mode): Add more indent-chars. * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--indent-rules): Add new rules. * lisp/progmodes/typescript-ts-mode.el (typescript-ts-base-mode): Add more indent-chars and layout rules.
Diffstat (limited to 'lisp/org/ob-octave.el')
0 files changed, 0 insertions, 0 deletions