Closed srustamo closed 7 years ago
My keys.el is in the root as in your config. I get the below error when have (require 'keys.el) in my init.el.
keys.el
(require 'keys.el)
init.el
If, however, I remove (require 'hydra-example) from keys.el and move it to init.el, all is well.
(require 'hydra-example)
hydra-example.el is in elpa dir, which is on the load-path. Not sure why it cannot be found, as emacs-d is also in the load-path.
hydra-example.el
elpa
load-path
emacs-d
Debugger entered--Lisp error: (file-error "Cannot open load file" "Not a directory" "hydra-example")
ad-Advice-require(# hydra-example) apply(ad-Advice-require # hydra-example) require(hydra-example) eval((require (quote hydra-example)) nil) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp)
I misspelled the package name.
My
keys.el
is in the root as in your config. I get the below error when have(require 'keys.el)
in myinit.el
.If, however, I remove
(require 'hydra-example)
fromkeys.el
and move it toinit.el
, all is well.hydra-example.el
is inelpa
dir, which is on theload-path
. Not sure why it cannot be found, asemacs-d
is also in theload-path
.Debugger entered--Lisp error: (file-error "Cannot open load file" "Not a directory" "hydra-example")
ad-Advice-require(# hydra-example)
apply(ad-Advice-require # hydra-example)
require(hydra-example)
eval((require (quote hydra-example)) nil)
elisp--eval-last-sexp(nil)
eval-last-sexp(nil)
funcall-interactively(eval-last-sexp nil)
call-interactively(eval-last-sexp nil nil)
command-execute(eval-last-sexp)