Emacs:符号作为变量的值是无效的:删除(init.el)

Emacs: Symbol's value as variable is void: Removes (init.el)

抱歉,如果这是一个愚蠢的问题;说到emacs,我完全是个新手。

最近,我开始研究如何设置 emacs 并偶然发现了一个很棒的视频系列Mike Zamansky. However, whilst following this video(创建一个 org init 文件),我安装到我的 emacsclient 上的所有软件包都继续不行。在初始化期间,有一个错误——即 "Symbol's value as variable is void: Removes." 我逐字复制了他的教程,我没有看到任何潜在的语法错误——也许我忽略了一些错误。但是,我一直在整个互联网上搜索,但找不到此问题的任何答案。

这是 init.el 文件的内容:

(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives
     '("melpa" . "http://melpa.org/packages/"))

(package-initialize)

;; Bootstrap 'use-package'
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))

(org-babel-load-file (expand-file-name "~/.emacs.d/myinit.org"))

这是错误:

Warning (initialization): An error occurred while loading 
‘/Users/Kyojin/.emacs.d/init.el’:

Symbol's value as variable is void: Removes

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

调试器输出(--debug-init):

Debugger entered--Lisp error: (void-variable Removes)
  eval-buffer(#<buffer  *load*-527594> nil 
"/Users/Kyojin/.emacs.d/myinit.el" nil t)  ; Reading at buffer position 
8
  load-with-code-conversion("/Users/Kyojin/.emacs.d/myinit.el" 
"/Users/Kyojin/.emacs.d/myinit.el" nil nil)
  load("/Users/Kyojin/.emacs.d/myinit.el" nil nil t)
  load-file("/Users/Kyojin/.emacs.d/myinit.el")
  (progn (load-file exported-file) "Loaded")
  (if compile (progn (byte-compile-file exported-file (quote load)) 
"Compiled and loaded") (progn (load-file exported-file) "Loaded"))
  (message "%s %s" (if compile (progn (byte-compile-file exported-file 
(quote load)) "Compiled and loaded") (progn (load-file exported-file) 
"Loaded")) exported-file)
  (let* ((age (function (lambda (file) (float-time (time-subtract 
(current-time) (nth 5 ...)))))) (base-name (file-name-sans-extension 
file)) (exported-file (concat base-name ".el"))) (if (and (file-exists-
p exported-file) (> (funcall age file) (funcall age exported-file))) 
nil (setq exported-file (car (last (org-babel-tangle-file file 
exported-file "emacs-lisp"))))) (message "%s %s" (if compile (progn 
(byte-compile-file exported-file (quote load)) "Compiled and loaded") 
(progn (load-file exported-file) "Loaded")) exported-file))
  org-babel-load-file("/Users/Kyojin/.emacs.d/myinit.org")
  eval-buffer(#<buffer  *load*> nil "/Users/Kyojin/.emacs.d/init.el" 
nil t)  ; Reading at buffer position 358
  load-with-code-conversion("/Users/Kyojin/.emacs.d/init.el" 
"/Users/Kyojin/.emacs.d/init.el" t t)
  load("/Users/Kyojin/.emacs.d/init" t t)
#[0"566=370Q2?1=472Q2?37
45#3* 62?3747#3>012!D\nB3
2?64541#04=3e67071Q!\"5
41#04=3d0372!32374!  
15P6!311246!332442\
357\"3301#023!06\f5445
441#)27"[init-file-user system-type 
delayed-warnings-list user-init-file inhibit-default-init inhibit-
startup-screen ms-dos "~" "/_emacs" windows-nt "/.emacs" directory-
files nil "^\.emacs\(\.elc?\)?$" "~/.emacs" "^_emacs\(\.elc?\)?
$" initialization format-message "`_emacs' init file is deprecated, 
please use `.emacs'" "~/_emacs" t load expand-file-name "init" file-
name-as-directory "/.emacs.d" file-name-extension "elc" file-name-sans-
extension ".el" file-exists-p file-newer-than-file-p message "Warning: 
%s is newer than %s" sit-for 1 "default"] 7]()
  command-line()
  normal-top-level()

在您的初始文件 "/Users/Kyojin/.emacs.d/myinit.el"(或可能在它加载的某些文件)中搜索词 Removes

如果您没有立即找到它,则递归地平分您的 init 文件以找到有问题的代码。您可以先注释掉文件的 1/2,然后 3/4,然后 7/8,...,直到找到问题为止。您可以通过选择 text/code 块然后使用 M-x comment-region 来评论它。您可以以相同的方式取消注释选择,但首先使用 C-uC-u M-x comment-region.