无法在OSX上使用emacs-live配置打开任何文件

时间:2014-06-29 06:54:30

标签: macos git emacs clojure customization

我看到了Sam Aaron带着泛音的emacs-live演示。我去了GitHub存储库,得到了他的.emacs.d设置,并通过删除现有的.emacs文件替换了我的设置。

一切似乎都很好,我有大多数emacs-live功能,但我似乎无法打开任何现有文件。

每次我做 C-x C-f 并选择一个文件时,我收到此消息:

"Searching for program: no such file or directory, git "

ido-find-file prompt

error message

此外,它会加载大量软件包并花费时间进行初始化并陷入以下消息:

Zoning... (zone-pgm-putz-with-case)

loading packages

message it gets stuck at

我是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)  

1 个答案:

答案 0 :(得分:1)

尝试使用exec-path-from-shell