title: How to turn on emacs auto-fill-mode only for code comments?
body: <p>I have tried</p>
  
  <pre><code>(set (make-local-variable 'comment-auto-fill-only-comments) t)
  </code></pre>
  
  <p>and also </p>
  
  <pre><code>(auto-fill-mode 0)
  </code></pre>
  
  <p><strong>Though amazingly, neither of those work after emacs is restarted.</strong></p>
  
  <p>I am using <a href="https://github.com/eschulte/emacs-starter-kit" rel="noreferrer">eschulte's emacs starter kit</a></p>
  
  <p>Toggling it works fine with M-x auto-fill-mode.</p>
  
  <hr>
  
  <h1><strong>UPDATE</strong></h1>
  
  <p>Using a combination of (thanks Rémi):</p>
  
  <pre><code>(auto-fill-mode 1)
  (setq comment-auto-fill-only-comments t) 
  </code></pre>
  
  <p>It works perfectly within programming files, where there are comments. However, in text mode, it auto-fills everywhere.</p>
  
  <p>How can I turn off auto-fill-mode completely when inside text documents?</p>