Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed emacs-snapshot through http://emacs.naquadah.org/

Everything works fine except when I run dired I get this error:

Debugger entered--Lisp error: (file-error "Searching for program" "no such file or directory" "ls")
call-process("ls" nil nil nil "--dired")
share|improve this question
    
Are you starting emacs through the Dash launcher? If so, it is using the PATH defined in ~/.profile, not the one set up in ~/.bashrc. See askubuntu.com/questions/64005/launcher-doesnt-respect-tmpdir for more info. –  waltinator Oct 16 '11 at 0:48
add comment

1 Answer

up vote 2 down vote accepted

I was able to fix this with:

(setenv "PATH" (concat (getenv "PATH") ":/bin"))
(setq exec-path (append exec-path '("/bin")))
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.