treyhunner/test_repo — Issue #7: Add support for changing indentations in different modes
Author: treyhunner
Created: 2011-11-22 06:11:49+00:00
State: open
Labels: testlabel3

Issue migrated from editorconfig/editorconfig-emacs#1. Originally created by treyhunner at 2011-11-05T04:57:28Z.

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.