title: What's the best way to override a default key binding in spacemacs?
body: <p>I'm using spacemacs: <a href="https://github.com/syl20bnr/spacemacs" rel="noreferrer">https://github.com/syl20bnr/spacemacs</a></p>
  
  <p>I've tried both user hook places for overriding cmd-k to be <code>kill-buffer</code> rather than <code>delete-window</code>. However, when I restart, neither works.</p>
  
  <pre><code>(defun dotspacemacs/user-init ()
    "Initialization function for user code.
  It is called immediately after `dotspacemacs/init'.  You are free to put any
  user code."
    (defun dotspacemacs/user-init ()
      (global-set-key (kbd "s-k") 'kill-buffer)
      )
    )
  
  (defun dotspacemacs/user-config ()
    "Configuration function for user code.
   This function is called at the very end of Spacemacs initialization after
  layers configuration. You are free to put any user code."
      (global-set-key (kbd "s-k") 'kill-buffer)
  )
  </code></pre>
  
  <p>What's the best way to debug this?</p>