editorconfig/editorconfig-emacs — Issue #1: Add support for changing indentations in different modes
Author: treyhunner
Created: 2011-11-05 04:57:28+00:00
State: open

This plugin currently supports setting indentation in text mode, but many other modes override `indent-line-function` to change the way the TAB key behaves. These overrides often use special variables to set the indentation tab width for soft tab indentation.

In all the modes I've seen, the number of spaces used for space-based indentation can be set with a specific variable. For example Python mode uses the "python-indent" variable to set the tab width.

I think we should include tab width overrides for common modes ([all of these modes](http://www.emacswiki.org/emacs/SmartTabs#toc1)) and create a hook that can be used for specifying indentation for custom/unknown modes.