Skip to content

Emacs smart tabs - indent with tabs, align with spaces!

Notifications You must be signed in to change notification settings

tpb261/smarttabs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 

Repository files navigation

Smart Tabs

Indent with tabs; align with spaces “Tabs.” “Spaces.” “Both.”

See EmacsWiki › SmartTabs for details about the idea this package enables.

Summary:

// Tab size: 4                // Tab size: 2
if(foo) {                     if(foo) {
--->char quux[4] = {0, 1,     ->char quux[4] = {0, 1,     // "0" and "2"
--->................2, 3};    ->................2, 3};    // remain aligned
}                             }

Tabs are only used at the beginning of lines. Everything else, like ASCII art and tables, should be formatted with spaces.

Tabs are only used for expressing the indentation level. One tab per “block” – any remaining whitespace is spaces only.

About

Emacs smart tabs - indent with tabs, align with spaces!

Resources

Stars

Watchers

Forks

Packages

No packages published