jwiegley / use-package

A use-package declaration for simplifying your .emacs
https://jwiegley.github.io/use-package
GNU General Public License v3.0
4.4k stars 260 forks source link

command-execute: Cannot open load file: No such file or directory, wd-char-aliases-show #978

Closed hongyi-zhao closed 2 years ago

hongyi-zhao commented 2 years ago

I try to load the nice small elisp script character-aliases.el, which can find all the name and alias corresponding to a codepoint in Emacs, and I put it in the following location on my machine to leverage straight.el to manage such scripts for convenience:

werner@X10DAi-00:~/.emacs.d/straight/repos$ tree -F hongyi-zhao-custom/
hongyi-zhao-custom/
└── character-aliases/
    └── character-aliases.el

1 directory, 1 file

According to the guidance here:

When you use the :commands keyword, it creates autoloads for those commands and defers loading of the module until they are used.

I use the following configuration in Emacs ~/.emacs.d/init.el:

(use-package wd-char-aliases-show
  :straight (:type nil :local-repo "hongyi-zhao-custom/character-aliases")
  :commands wd-char-aliases-show
  )

It turns out that the command wd-char-aliases-show is available now, but it still doesn't work, as shown below:

image image

Any hints for fixing this problem?

See here for a related discussion.

Regards, HZ

hongyi-zhao commented 2 years ago

The problem has been resolved, please see here for more details.