大家好,我在使用--debug-init
选项启动emacs的时候出现了如下的错误
wrong-type-argument symbolp 'dotspacemacs-folding-method
然后我定位到dotspacemacs-folding-method
的定义在core-dotspacemacs.el
文件中如下:
(spacemacs|defc dotspacemacs-folding-method 'evil
"Code folding method. Possible values are `evil', `origami' and `vimish'."
'(choice (cosnt evil) (const origami) (const vimish))
'spacemacs-dotspacemacs-init
我猜测原因可能是evil
的类型定义有误,应该是const
而不是cosnt
,因此我把它给改了过来,但是
目前错误仍然存在,是否我更改文件后还需要编译呢,或者需要清除某些缓存呢,谢谢!
下面是完整的log:
Debugger entered--Lisp error: (wrong-type-argument symbolp 'dotspacemacs-folding-method)
set-default('dotspacemacs-folding-method evil)
(progn (set-default 'dotspacemacs-enable-emacs-pdumper nil) (set-default 'dotspacemacs-emacs-pdumper-executable-file "emacs") (set-default 'dotspacemacs-emacs-dumper-dump-file (format "spacemacs-%s.pdmp" emacs-version)) (set-default 'd$
(closure (t) nil "Initialization:\nThis function is called at the ver..." (progn (set-default 'dotspacemacs-enable-emacs-pdumper nil) (set-default 'dotspacemacs-emacs-pdumper-executable-file "emacs") (set-default 'dotspacemacs-emacs-du$
apply((closure (t) nil "Initialization:\nThis function is called at the ver..." (progn (set-default 'dotspacemacs-enable-emacs-pdumper nil) (set-default 'dotspacemacs-emacs-pdumper-executable-file "emacs") (set-default 'dotspacemacs-em$
dotspacemacs/init()
(condition-case err (dotspacemacs/init) ((debug error) (configuration-layer//increment-error-count) (spacemacs-buffer/append (format "Error in %s: %s\n" '"dotspacemacs/init" (error-message-string err)) t)))
(progn (condition-case err (dotspacemacs/init) ((debug error) (configuration-layer//increment-error-count) (spacemacs-buffer/append (format "Error in %s: %s\n" '"dotspacemacs/init" (error-message-string err)) t))))
(if (fboundp 'dotspacemacs/init) (progn (condition-case err (dotspacemacs/init) ((debug error) (configuration-layer//increment-error-count) (spacemacs-buffer/append (format "Error in %s: %s\n" '"dotspacemacs/init" (error-message-string$
(progn (if "Calling dotfile init..." (progn (spacemacs-buffer/message "Calling dotfile init..."))) (if (fboundp 'dotspacemacs/init) (progn (condition-case err (dotspacemacs/init) ((debug error) (configuration-layer//increment-error-cou$
spacemacs/init()
(let ((file-name-handler-alist nil)) (require 'core-spacemacs) (spacemacs/dump-restore-load-path) (configuration-layer/load-lock-file) (spacemacs/init) (configuration-layer/stable-elpa-init) (configuration-layer/load) (spacemacs-buffer$
(if (not (version<= spacemacs-emacs-min-version emacs-version)) (error (concat "Your version of Emacs (%s) is too old. " "Spacemacs requires Emacs version %s or above.") emacs-version spacemacs-emacs-min-version) (let ((file-name-handl$
eval-buffer(#<buffer *load*> nil "/home/hermanhe/.emacs.d/init.el" nil t) ; Reading at buffer position 3159
load-with-code-conversion("/home/hermanhe/.emacs.d/init.el" "/home/hermanhe/.emacs.d/init.el" t t)
load("/home/hermanhe/.emacs.d/init" noerror nomessage)
startup--load-user-init-file(#f(compiled-function () #<bytecode 0x77ef45>) #f(compiled-function () #<bytecode 0x77ef59>) t)
command-line()
normal-top-level()