jcsalomon / smarttabs

Emacs smart tabs - indent with tabs, align with spaces!
http://www.emacswiki.org/emacs/SmartTabs
114 stars 20 forks source link

Make usable in text mode #6

Closed rpglover64 closed 12 years ago

rpglover64 commented 12 years ago

Text mode does not seem to have a variable controlling tab width (tab-to-tab-stop is the closest I found), and I don't think that indent-relative is a suitable indent function.

jcsalomon commented 12 years ago

Can you give an example of a text file that would be served by smart-tabs?

rpglover64 commented 12 years ago

https://gist.github.com/1377735

This came up as I was doing my homework and was trying to make sure to align the equal signs but indent the problems.

I guess it's not really a text-mode file, but I don't know of a better major mode for it.

jcsalomon commented 12 years ago

Does Emacs align this sort of thing at all? This project is a refinement of & addition to Emacs’s already-existing auto-align. That means it needs a major mode that supports such.

I’m closing this issue for now.

rpglover64 commented 12 years ago

Pressing tab aligns with the the first non-whitespace character, using as many tabs as possible and then spaces to fill out the rest.