diff options
author | pommicket <pommicket@gmail.com> | 2023-10-17 20:51:33 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-10-17 20:51:33 -0400 |
commit | 29282f362d5f663ec3da17b135751f3b9b2bd0fd (patch) | |
tree | 0be73a38dece65c088976b2aace033b21377f973 /README.md | |
parent | 85c30e8fb21170d602efb53a86c0000a3aa79cbf (diff) |
accept regex for path-specific settings
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -97,6 +97,19 @@ You can set settings for specific programming languages like this: tab-width = 2 ``` +Or settings for specific paths like this: + +``` +[/foo//core] +# set tab width in /foo to 17 +tab-width = 17 + +# PCRE regex is supported! (the start is anchored but the end isn't) +[~/foo/.*\.hmtgf//core] +# set tab width for .hmtgf files in ~/foo +tab-width = 9 +``` + To reset your ted configuration to the default settings, delete your ted.cfg file (`~/.local/share/ted/ted.cfg` on Linux, `C:\Users\<your user name>\AppData\Local\ted\ted.cfg` on Windows) or move it somewhere else. |