title: Emacs: Set tab indent for just one file on the fly
body: <p>I work on an open source project where the creator sets his tab-indents to 2 spaces. </p>
  
  <p>I'd like to just enable it on the fly for the one file I work on and not other files of the same type. There must be something like <kbd>M-x</kbd> <code>set-tab-indent</code>. It is a JavaScript file ending in <code>.js</code>.</p>
  
  <p>I know I can use:</p>
  
  <pre><code>(setq-default tab-width int)
  </code></pre>
  
  <p>inside my <code>.emacs</code> file, but I rather just call an <kbd>M-x</kbd> <code>command</code> to set it and forget it during my duration of working on this file. I tried <kbd>M-x</kbd> <code>apropos</code> and Google but couldn't find the specific command.</p>
  
  <p>Thanks.</p>