I have a problem with my init.el emacs file which is driving me crazy.
my init.el sets the boot path to the set of add-ons and then calls the number of requests.
Emacs loads fine, and everything works, but the flag for the elisp flags is the first request in init.el with “cannot open the boot file”, and if I compile bytes, it also gives me the same error.
I created a simple example to recreate the problem and test it on both Mac OS X and Ubuntu using emacs 24.3 (9.0). both tests give me the same error.
here is an example:
;; init.el
(add-to-list 'load-path "~/.emacs.d/.")
(add-to-list 'load-path "~/.emacs.d/exec-path-from-shell")
(require 'test)
(require 'exec-path-from-shell)
;; test.el --- test lives in "~/.emacs.d"
(defvar test-var "this is test")
(provide 'test)
error:
vagrant@elsa:~/.emacs.d$ pwd
/home/vagrant/.emacs.d
vagrant@elsa:~/.emacs.d$ sudo make
emacs
Loading 00debian-vars...
Loading /etc/emacs/site-start.d/50autoconf.el (source)...
Checking /home/vagrant/.emacs.d...
Compiling /home/vagrant/.emacs.d/init.el...
In toplevel form:
init.el:5:1:Error: Cannot open load file: test
Checking /home/vagrant/.emacs.d/auto-save-list...
Checking /home/vagrant/.emacs.d/bin...
Checking /home/vagrant/.emacs.d/exec-path-from-shell...
Done (Total of 0 files compiled, 1 failed, 2 skipped in 2 directories)
vagrant@elsa:~/.emacs.d$
if I reorder require () requests
(require 'exec-path-from-shell)
(require 'test)
The error will be as follows:
In toplevel form:
init.el:5:1:Error: Cannot open load file: exec-path-from-shell
what's happening? what am I doing wrong?
With respect, Roman