summaryrefslogtreecommitdiff
path: root/ted.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'ted.cfg')
-rw-r--r--ted.cfg8
1 files changed, 8 insertions, 0 deletions
diff --git a/ted.cfg b/ted.cfg
index 702284b..ea59963 100644
--- a/ted.cfg
+++ b/ted.cfg
@@ -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)