我正在使用 spacemacs:https ://github.com/syl20bnr/spacemacs
我已经尝试了两个用户挂钩位置来覆盖 cmd-kkill-buffer
而不是delete-window
. 但是,当我重新启动时,两者都不起作用。
(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)
)
调试这个的最佳方法是什么?