title: set the evil shift width to the buffer-local indentation in emacs
body: <p>I use evil, which got</p>
  
  <pre><code>(defcustom evil-shift-width 4
    "The offset used by \\&lt;evil-normal-state-map&gt;\\[evil-shift-right] \
  and \\[evil-shift-left]."
    :type 'integer
    :group 'evil)
  </code></pre>
  
  <p>I'd like to set evil-shift-width to the buffer-local indent width (the variable <code>indent</code>).</p>
  
  <pre><code>(add-hook 'after-change-major-mode-hook
        (function (lambda ()
                    (setq evil-shift-width indent))))
  </code></pre>
  
  <p>What did I miss?</p>