I have an
init.el file with the following line:
my-1 package is on the load path.
my-1 defines this function:
(defun my-f () "Hello." (interactive) (when (featurep 'my-2) (require 'my-2) ... some code here ...)
'my-2' is also on the load path.
Now the problem: calling
my-f works (i.e. Emacs evaluates the
my-1 package), but the feature
my-2 is not loaded. If I manually evaluated
(require 'my-2) - everything works (this also proves that
my-2 package is on the load path).
How do I
my-2 package from within the
defun so it gets evaluated?