title: How to make emacs behave closer to the regular editors?
body: <p>I'm using Emacs 23.1.1 on Ubuntu with <a href="https://github.com/technomancy/emacs-starter-kit" rel="nofollow">Emacs starter kit</a>. I primarily work in the lua-mode.</p>
  
  <p>Is there a way to stop Emacs being so smart about indentation? I'm used to the dumb editors, and press all the required keys manually.</p>
  
  <p>I want to use two spaces per indent, tabs-to-spaces.</p>
  
  <p>When I press <kbd>RETURN</kbd>, the new line indentation must match the previous line.</p>
  
  <p>When I press <kbd>TAB</kbd> on the leading whitespace, the line contents must be indented by one indentation unit.</p>
  
  <p>When I press <kbd>TAB</kbd> on the beginning of empty line, the cursor must move one indentation unit to the right.</p>
  
  <p>Oh, and I'd like to get soft word wrap on 80<sup>th</sup> column and trim-trailing-spaces on save as well.</p>
  
  <p><strong>Update</strong>: </p>
  
  <p>(Would put this in a comment, but it needs formatting)</p>
  
  <p>If I use Thomas's solution, auto-indent on <kbd>RETURN</kbd> is "fixed", but <kbd>TAB</kbd> still indents weirdly:</p>
  
  <pre>
  local run = function(...)
             x
  </pre>
  
  <p>"x" marks the spot where cursor appears after I type the first line and hit <kbd>RETURN</kbd>, <kbd>TAB</kbd>.</p>