Hacker News new | ask | show | jobs
by thenduks 6162 days ago
I'd love to finally use emacs 24/7 (rather than randomly jumping between (ubuntu) gedit, gvim, vim, emacs and (osx) textmate) but arg I still can't figure out how to force emacs to: Never insert a tab character, ever. When I press tab, just always insert the freaking spaces instead of apparently not believing me that I want to indent there.

Honestly, am I missing something? I don't leave trailing whitespace in files because, well, it's our convention and I think it's pointless anyway. So I go into a function to add some code in the middle and it's impossible to get indented the right amount without hitting space 12 times since pressing tab just does nothing. I know I could go onto a previous line and hit C-e C-j to line break + indent but do you know how often I just try to insert code in the middle and realize it doesn't work? Google has not been my friend on this issue.

/rant

1 comments

Unfortunately, no. Go to a blank line inside a code block that's indented a bit and hit tab. Nothing happens :/

I wasn't clear above, I have been able to have it never insert a tab, but it's that and the "don't try to 'intelligently' prevent me from indenting" thing that I need.