绑定快捷键执行自定义函数失败, 请帮忙看看, 谢谢
Wrong type argument: commandp, quit-emacs
Debugger entered--Lisp error: (wrong-type-argument commandp quit-emacs) command-execute(quit-emacs)
(defun quit-emacs()
(recentf-cleanup)
(recentf-save-list)
(save-buffers-kill-terminal))
(defun quit-emacs-server()
(recentf-cleanup)
(recentf-save-list)
(save-buffers-kill-emacs))
(defun set-global-keys()
(interactive)
;; common
(global-set-key (kbd "C-x C-c") 'quit-emacs)
(global-set-key (kbd "C-x @ C-c") 'quit-emacs-server))