I'm using spacemacs: https://github.com/syl20bnr/spacemacs
I've tried both user hook places for overriding cmd-k to be kill-buffer
rather than delete-window
. However, when I restart, neither works.
(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)
)
What's the best way to debug this?