How to make tabs be tabs instead of spaces?

For editing Makefiles, TSVs and most embedded C code, the “tab” button must continue to emit a \009, instead of some number of spaces. indentWithTab seems to only insert spaces instead of actually emit tabs.

How does one configure CodeMirror to emit tabs - and/or just make indentation use tabs (preferably in a configurable way to match the underlying codebase)?

What indentWithTab inserts is controlled with the indentUnit facet. Set that to a tab character and it’ll indent with tabs.

Perfect! That did it! Thanks so much. For reference, I can toggle it by disabling/enabling indentUnit, and I am using:

indentUnit.of("\t") in my extensions

When enabled.