【发布时间】:2014-06-29 06:54:30
【问题描述】:
我看到 Sam Aaron 的 emacs-live 演示带有泛音。我去了 GitHub 存储库,得到了他的 .emacs.d 设置,并通过删除现有的 .emacs 文件替换了我的设置。
一切似乎都很好,我拥有大部分 emacs-live 功能,但我似乎无法打开任何现有文件。
每次我执行 C-x C-f 并选择一个文件时,我都会收到以下消息:
"Searching for program: no such file or directory, git "
此外,它会加载大量包并需要时间来初始化并卡在以下消息中:
Zoning... (zone-pgm-putz-with-case)
我是 Emacs 新手,知道这里一定出了什么问题吗?
编辑 1:
我的系统上安装了 Git!
这是我使用的仓库:https://github.com/overtone/emacs-live
编辑 2:
调试器的输出:
Debugger entered--Lisp error: (file-error "Searching for program" "no such file or directory" "git")
call-process("git" nil (t nil) nil "--no-pager" "rev-parse" "--show-cdup")
apply(call-process "git" nil (t nil) nil ("--no-pager" "rev-parse" "--show-cdup"))
process-file("git" nil (t nil) nil "--no-pager" "rev-parse" "--show-cdup")
apply(process-file "git" nil (t nil) nil ("--no-pager" "rev-parse" "--show-cdup"))
(progn (apply (function process-file) magit-git-executable nil (list t nil) nil (append magit-git-standard-options args)) (if (= (point-m$
(unwind-protect (progn (apply (function process-file) magit-git-executable nil (list t nil) nil (append magit-git-standard-options args))$
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (apply (function process-file) magit-git-executable nil (list t nil)$
(let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (apply (functio$
magit-git-string("rev-parse" "--show-cdup")
(let* ((default-directory (file-name-as-directory cwd)) (cdup (magit-git-string "rev-parse" "--show-cdup"))) (if cdup (progn (file-name-a$
(progn (let* ((default-directory (file-name-as-directory cwd)) (cdup (magit-git-string "rev-parse" "--show-cdup"))) (if cdup (progn (file$
(if (file-directory-p cwd) (progn (let* ((default-directory (file-name-as-directory cwd)) (cdup (magit-git-string "rev-parse" "--show-cdu$
magit-get-top-dir()
(and magit-turn-on-auto-revert-mode (not auto-revert-mode) (not auto-revert-tail-mode) (not global-auto-revert-mode) (magit-get-top-dir))
(if (and magit-turn-on-auto-revert-mode (not auto-revert-mode) (not auto-revert-tail-mode) (not global-auto-revert-mode) (magit-get-top-d$
magit-maybe-turn-on-auto-revert-mode()
run-hooks(find-file-hook)
after-find-file(nil t)
find-file-noselect-1(#<buffer access.clj> "~/Desktop/hulk/src/core/models/access.clj" nil nil "~/Desktop/hulk/src/core/models/access.clj"$
find-file-noselect("/Users/amogh/Desktop/hulk/src/core/models/access.clj" nil nil)
ido-file-internal(selected-window)
ido-find-file()
call-interactively(ido-find-file nil nil)
【问题讨论】:
-
您应该能够通过在系统上安装Git 来消除第一个错误。另外:如果您可以提供包含您尝试加载的配置的 GitHub 存储库的链接,那就太好了。
-
“分区...”消息是因为
zone已被调用(括号中的部分告诉您可用的zone-programs中的哪一个有效)。几乎可以肯定,当时的显示器正在做一些有点时髦的事情。你可以自己调用M-x zone。 -
@AmoghTalpallikar
C-x C-f绑定到哪个命令?做C-h kC-x C-f找出答案。 (默认情况下,C-x C-f绑定到不依赖于git的find-file。) -
在 Emacs 中键入
C-h v exec-path RET,在常规 shell 中键入which git,并检查后者的路径是否出现在前者的结果中。 (哦...看起来像 emacs-live 重新绑定C-h;这不太友好。您需要使用<f1> v而不是C-h v。) -
如果您在此处找不到解决方案,请在 emacs-live github 问题队列中提出此问题。
标签: macos git emacs clojure customization