emacs-china / Spacemacs-rocks

Happy Hacking Emacs & Spacemacs (Simplified Chinese)
http://book.emacs-china.org
2.12k stars 323 forks source link

`dotspacemacs-configuration-layers` 无法设置变量 #146

Closed KngZhi closed 6 years ago

KngZhi commented 6 years ago

执行代码时报错

   dotspacemacs-configuration-layers
   '(
     ;; ----------------
     ;; Example of useful layers you may want to use right away.
     ;; Uncomment some layer names and press <SPC f e R> (Vim style) or
     ;; <M-m f e R> (Emacs style) to install them.
     ;; ----------------------------------------------------------------
     osx
     ivy
     (better-defaults :variables
                      better-defaults-move-to-end-of-code-first t)

错误信息

Debugger entered--Lisp error: (void-function better-defaults)
  (better-defaults :variables better-defaults-move-to-end-of-code-first t)
  eval((better-defaults :variables better-defaults-move-to-end-of-code-first t) nil)
  elisp--eval-last-sexp(nil)
  #[257 "\204\303!\207  \303!\n)B\211A    =\204\211A\211@\207" [eval-expression-debug-on-error elisp--eval-last-sexp-fake-value debug-on-error elisp--eval-last-sexp] 4 2273792 "P"](nil)
  ad-Advice-eval-last-sexp(#[257 "\204\303!\207 \303!\n)B\211A    =\204\211A\211@\207" [eval-expression-debug-on-error elisp--eval-last-sexp-fake-value debug-on-error elisp--eval-last-sexp] 4 2273792 "P"] nil)
  apply(ad-Advice-eval-last-sexp #[257 "\204\303!\207   \303!\n)B\211A    =\204\211A\211@\207" [eval-expression-debug-on-error elisp--eval-last-sexp-fake-value debug-on-error elisp--eval-last-sexp] 4 2273792 "P"] nil)
  eval-last-sexp(nil)
  funcall-interactively(eval-last-sexp nil)
  call-interactively(eval-last-sexp nil nil)
  command-execute(eval-last-sexp)

被这个问题困扰了非常久,麻烦大家帮忙看下。