3 ms·
Most cases isn't good enough. Exceptions are still frequent, such as this example FTA: SomeClass::SomeClass() _____.:.InheritingClass(false, false _____.
by philh 17y ago
Most cases isn't good enough. Exceptions are still frequent, such as this example FTA:
SomeClass::SomeClass()
_____.:.InheritingClass(false, false
_____...................5, 10, true,
_____...................bleh, blah)
As compared to
SomeClass::SomeClass()
_____.:.InheritingClass(false, false
____________________....5, 10, true,
____________________....bleh, blah)
Which will no longer align if tabstops are changed.
I've set up emacs to do the right thing in c-mode, and possibly in other modes which inherit from it. It's not hard to find a solution online, but it's certainly not "out of the box".
- __david__ 17y ago> I've set up emacs to do the right thing in c-mode Would you mind posting a .emacs snippet? I've tried to do it in the past and got the impression it was not possible. I'd love to see what you did.
- philh 17y agoWhat I use is here: http://philh.net/smart-tab.el http://philh.net/smart-tab.el Which is a (very slightly) modified version of what I foud here: http://bytes.inso.cc/wp/2009/01/07/dot-emacs-smarter-indentation-with-tabs-and-spaces/ http://bytes.inso.cc/wp/2009/01/07/dot-emacs-smarter-indenta... This seems to be a more language-agnostic approach: http://www.emacswiki.org/emacs/SmartTabs http://www.emacswiki.org/emacs/SmartTabs
- jart 17y agoWow, people have been telling me this was impossible for years. Thanks :D