* cannot use-package which-key
@ 2021-07-22 7:03 Luca Ferrari
2021-07-22 7:29 ` Luca Ferrari
0 siblings, 1 reply; 3+ messages in thread
From: Luca Ferrari @ 2021-07-22 7:03 UTC (permalink / raw)
To: help-gnu-emacs
Hi all
,I'm running emacs 27.2 compiled on Linux Fedora 33. If I install
which-key by means of package-install everything works fine, but if I
try to automatically get it installed from my configuration file, it
fails.
My configuration looks like:
(use-package which-key
:init (which-key-mode)
:diminish which-key-mode
:config
(setq which-key-idle-delay 0.3))
and the --debug-init gives me:
Debugger entered--Lisp error: (void-function which-key-mode)
(which-key-mode)
(condition-case err (which-key-mode) ((debug error) (funcall
use-package--warning2 :init err)))
(progn (condition-case err (which-key-mode) ((debug error) (funcall
use-package--warning2 :init err))) (let ((now (current-time)))
(message "%s.$
(condition-case err (progn (condition-case err (which-key-mode)
((debug error) (funcall use-package--warning2 :init err))) (let ((now
(current-t$
eval-buffer(#<buffer *load*-377393> nil
"/home/luca/.emacs.d/emacs.el" nil t) ; Reading at buffer position
996
load-with-code-conversion("/home/luca/.emacs.d/emacs.el"
"/home/luca/.emacs.d/emacs.el" nil nil)
load("/home/luca/.emacs.d/emacs.el" nil nil t)
load-file("/home/luca/.emacs.d/emacs.el")
org-babel-load-file("/home/luca/.emacs.d/emacs.org")
eval-buffer(#<buffer *load*> nil "/home/luca/.emacs.d/init.el" nil
t) ; Reading at buffer position 391
load-with-code-conversion("/home/luca/.emacs.d/init.el"
"/home/luca/.emacs.d/init.el" t t)
load("/home/luca/.emacs.d/init" noerror nomessage)
startup--load-user-init-file(#f(compiled-function () #<bytecode
0x6107c5>) #f(compiled-function () #<bytecode 0x60640d>) t)
command-line()
normal-top-level()
What am I missing here?
Thanks,
Luca
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cannot use-package which-key
2021-07-22 7:03 cannot use-package which-key Luca Ferrari
@ 2021-07-22 7:29 ` Luca Ferrari
2021-07-22 10:08 ` Luca Ferrari
0 siblings, 1 reply; 3+ messages in thread
From: Luca Ferrari @ 2021-07-22 7:29 UTC (permalink / raw)
To: help-gnu-emacs
Uhm, it is clear a problem with use-package, since I'm not able to use
any other package.
This is how my configuration looks like:
;; Initialize package sources
(require 'package)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("melpa-stable" .
"https://stable.melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")
("elpa" . "https://elpa.gnu.org/packages/")))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package) )
(require 'use-package)
(setq use-package-verbose t)
but if I then try to load with a simple use-package entry liek:
(use-package dimish)
I got on startup the error:
Error (use-package): Cannot load diminish.
Is something broken with my config or am I just not getting the point
of use-package?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cannot use-package which-key
2021-07-22 7:29 ` Luca Ferrari
@ 2021-07-22 10:08 ` Luca Ferrari
0 siblings, 0 replies; 3+ messages in thread
From: Luca Ferrari @ 2021-07-22 10:08 UTC (permalink / raw)
To: help-gnu-emacs
Shame on me!
I was not providing the :require flag, thus use-package was not
installing my packages.
See <https://github.com/jwiegley/use-package#package-installation>.
Sorry for the noise.
Thanks,
Luca
On Thu, Jul 22, 2021 at 9:29 AM Luca Ferrari <fluca1978@gmail.com> wrote:
>
> Uhm, it is clear a problem with use-package, since I'm not able to use
> any other package.
>
> This is how my configuration looks like:
>
> ;; Initialize package sources
> (require 'package)
>
> (setq package-archives '(("melpa" . "https://melpa.org/packages/")
> ("melpa-stable" .
> "https://stable.melpa.org/packages/")
> ("org" . "https://orgmode.org/elpa/")
> ("elpa" . "https://elpa.gnu.org/packages/")))
>
> (package-initialize)
>
>
>
> (unless (package-installed-p 'use-package)
> (package-refresh-contents)
> (package-install 'use-package) )
>
> (require 'use-package)
> (setq use-package-verbose t)
>
>
>
> but if I then try to load with a simple use-package entry liek:
>
> (use-package dimish)
>
> I got on startup the error:
>
> Error (use-package): Cannot load diminish.
>
> Is something broken with my config or am I just not getting the point
> of use-package?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-07-22 10:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-22 7:03 cannot use-package which-key Luca Ferrari
2021-07-22 7:29 ` Luca Ferrari
2021-07-22 10:08 ` Luca Ferrari
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.