title: Cannot get to bind Enter to 'newline-and-indent in Emacs !!! Very annoying
body: <p>Cannot get to bind Enter to <code>newline-and-indent</code> in Emacs !!! Very annoying.</p>
  
  <p>I already tried everything on the following thread by changing 'mode' to ruby and still nothing:</p>
  
  <p><a href="https://stackoverflow.com/questions/823745/how-do-i-make-emacs-auto-indent-my-c-code">How do I make Emacs auto-indent my C code?</a></p>
  
  <p>I know that the problem is the <kbd>RETURN</kbd> key, since if I bind to something else, works fine.
  I tried <code>[enter]</code>, <code>(kbd "enter")</code>, <code>(read-kbd-macro "enter")</code>, <code>(kbd "RET")</code></p>
  
  <hr>
  
  <p>Follow-up 1.</p>
  
  <p>This is what I get from <kbd>C-h</kbd><kbd>k</kbd><kbd>RET</kbd></p>
  
  <blockquote>
    <p>RET runs the command newline, which is an interactive compiled Lisp
    function.</p>
    
    <p>It is bound to RET.</p>
    
    <p>(newline &amp;optional ARG)</p>
    
    <p>Insert a newline, and move to left margin of the new line if it's blank.
    If <code>use-hard-newlines' is non-nil, the newline is marked with the
    text-property</code>hard'.
    With ARG, insert that many newlines.
    Call <code>auto-fill-function' if the current column number is greater
    than the value of</code>fill-column' and ARG is nil.</p>
  </blockquote>
  
  <p>I dont know what to make of it or how to figure out if it's a global
  or local binding that gets in the way. trying to remap <kbd>C-j</kbd>
  also doesnt work.</p>