I am trying to install simplenote2 to read my org files on my phone. The official setup method is:
(require 'simplenote2) (setq simplenote2-email "email@example.com") (setq simplenote2-password "yourpassword") (simplenote2-setup)
and the app starts with
In practice credentials are not necessary in clear and
(require...) can be omitted because
simplenote2-setup is autoloaded.
I would like to use a
use-package declaration, therefore I am using:
(use-package simplenote2 :config (setq simplenote2-email "firstname.lastname@example.org") (setq simplenote2-password "yourpassword") (setq simplenote2-notes-mode (quote org-mode)) (simplenote2-setup))
(The extra line is for org-mode integration).
When I start the library with
M-x simplenote2-list, I get an error due to a void variable
This variable is defined through a
defvar in simplenote2.el. So, it seems that the
use-package declaration is not requiring
The likely cause is that the autoloaded function
simplenote2-list is defined in the separate file
simplenote2-list requires only
simplenote2-list.el, but not
If this is the cause, how can I instruct
use-package to require also
simplenote2.el the first time
M-x simplenote2-list is run?
Or alternatively: before running
M-x simplenote2-list, how can I run the autoloaded
(simplenote2-setup), which automatically requires
Note that I have the global option
use-package-always-defer set true.