diff options
author | pommicket <pommicket@gmail.com> | 2024-02-13 09:58:16 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2024-02-13 09:58:16 -0500 |
commit | 176f0b1f52676bbcf61e5098e5cec400d52fc306 (patch) | |
tree | 7ab4e0bd76745ed2d84050d414637e1b72d41cb5 /ted.cfg | |
parent | 6d85a7e605011d16018fdf202e40e59e2f916b63 (diff) |
auto-detect indentation
Diffstat (limited to 'ted.cfg')
-rw-r--r-- | ted.cfg | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -3,6 +3,14 @@ [core] tab-width = 4 indent-with-spaces = off +# if enabled, indentation type will be automatically detected from file when possible +# how this currently works: +# 1. if any lines start with a tab character, tabs are used +# 2. otherwise, if # 4-spaced lines / 50 < # 2-spaced lines, 2 spaces are used +# 3. otherwise, if # 8-spaced lines / 50 < # 4-spaced lines, 4 spaces are used +# 4. otherwise, if any lines start with exactly 8 spaces, 8 spaces are used +# 5. otherwise, your default settings are used +autodetect-indentation = on # cursor width in pixels cursor-width = 1 # time to blink cursor for (i.e. it will be on for cursor-blink-time-on seconds, then off for cursor-blink-time-off seconds) |