use-package
use-package copied to clipboard
:custom trigger a load error while loading yankpad
If I put in my init file:
(custom-set-variables
'(yankpad-descriptive-list-treatment 'abbrev))
(require 'yankpad)
Yankpad load without error.
When I want to set it with use-package:
(use-package yankpad
:ensure t
:custom (yankpad-descriptive-list-treatment 'abbrev))
I get at emacs init the following error:
Error (use-package): yankpad/:catch: Symbol’s function definition is void: yankpad-category-descriptions
And from then any command on emacs gives this "symbol's function definition is void" and have no choice but killing emacs.
If I replace the :custom by
:config (setq yankpad-descriptive-list-treatment 'abbrev)
there is no error.
I have tested it with an init file limited to the previous statement, to avoid conflict with other settings, on Emacs 28.0.91