From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.devel Subject: Re: Include which-key.el in the Emacs distribution Date: Mon, 14 Feb 2022 14:34:55 +0530 Message-ID: <871r05izt4.fsf@codeisgreat.org> References: <20200908201434.hrvupafbu2kyvb4q@Ergus> <87wnhyk72h.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18292"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: emacs-devel@gnu.org Cancel-Lock: sha1:EIh8ieXSZNEBJzIcO1/MpFMJZxI= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 14 10:07:19 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJXKI-0004UX-5k for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Feb 2022 10:07:18 +0100 Original-Received: from localhost ([::1]:33838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJXKG-00040e-Qk for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Feb 2022 04:07:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJXIM-0002ey-QF for emacs-devel@gnu.org; Mon, 14 Feb 2022 04:05:23 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:41006) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJXIE-0001P1-IV for emacs-devel@gnu.org; Mon, 14 Feb 2022 04:05:15 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nJXI8-0001SA-Ue for emacs-devel@gnu.org; Mon, 14 Feb 2022 10:05:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:286241 Archived-At: Philip Kaludercic writes: > What I would be more interested in is to add optional support for C-h to > continue a command prefix, so that if I want to know what keys a keymap > provides, I can request it immediately without waiting for the idle > timer to trigger a often too small popup window, without loosing the > partial input. I¡¯ve enabled default settings of which-key. And that is good enough, at least for me, so that it pops up on those rare occasions when my muscle memory is not able to recall something. But "Manual Activation" feature is available in "which-key". Following section of README file explains it briefly: #+begin_src emacs-lisp ;; Allow C-h to trigger which-key before it is done automatically (setq which-key-show-early-on-C-h t) ;; make sure which-key doesn't show normally but refreshes quickly after it is ;; triggered. (setq which-key-idle-delay 10000) (setq which-key-idle-secondary-delay 0.05) (which-key-mode) ;; This will prevent which-key from showing automatically, and allow ;; you to use C-h in the middle of a key sequence to show the which-key ;; buffer and keep it open for the remainder of the key sequence. #+end_src