title: How to enable a non-global minor mode by default, on emacs startup?
body: <p>I want to enable <code>rainbow-mode</code> everytime I start emacs, rather than having to use <code>M-x rainbow-mode</code>.</p>
  
  <p>I guess there is some command I put in my .emacs file.</p>
  
  <p>I tried all of the following, but none of them worked:</p>
  
  <pre class="lang-el prettyprint-override"><code>(require 'rainbow-mode)   
  
  (rainbow-mode initialize)
  
  (global-rainbow-mode)
  </code></pre>
  
  <p>More generally, how do I load any mode/package automatically on startup?</p>