unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Luca Ferrari <fluca1978@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: cannot use-package which-key
Date: Thu, 22 Jul 2021 09:03:02 +0200	[thread overview]
Message-ID: <CAKoxK+4B9x+atx90bt4W5FGZw+6Zq4c_52ru6eH0_ypQCjB5Wg@mail.gmail.com> (raw)

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



             reply	other threads:[~2021-07-22  7:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22  7:03 Luca Ferrari [this message]
2021-07-22  7:29 ` cannot use-package which-key Luca Ferrari
2021-07-22 10:08   ` Luca Ferrari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKoxK+4B9x+atx90bt4W5FGZw+6Zq4c_52ru6eH0_ypQCjB5Wg@mail.gmail.com \
    --to=fluca1978@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).