1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-27 10:21:14 -08:00

Make preventing C-h cycling the default

This commit is contained in:
justbur 2015-09-02 12:57:46 -04:00
parent f248e9093e
commit 73ff071ec3
2 changed files with 11 additions and 12 deletions

View file

@ -2,14 +2,14 @@
[[http://melpa.org/#/which-key][http://melpa.org/packages/which-key-badge.svg]]
** What's new
*** Paging
- The new option =which-key-prevent-C-h-from-cycling=, which is =nil= by default
- The new option =which-key-prevent-C-h-from-cycling=, which is =t= by default
allows one to take advantage of using =C-h= for paging as well as the default
Emacs behavior of using =C-h= to describe the bindings for the current key
sequence prefix.
- The configuration below will allow you to switch paging using =C-h= until you
reach the last page of keys in the which-key buffer. The next press of =C-h=
will close the which-key buffer and trigger the default Emacs behavior on
=C-h=.
- The (default) configuration below will allow you to switch paging using =C-h=
until you reach the last page of keys in the which-key buffer. The next press
of =C-h= will close the which-key buffer and trigger the default Emacs
behavior on =C-h=.
#+BEGIN_SRC Emacs-lisp
(setq which-key-use-C-h-for-paging t
which-key-prevent-C-h-from-cycling t)

View file

@ -235,13 +235,12 @@ prefixes in `which-key-paging-prefixes'"
:group 'which-key
:type 'boolean)
(defcustom which-key-prevent-C-h-from-cycling nil
"Experimental: When using C-h for paging, which-key overrides
the default behavior of calling `describe-prefix-bindings'.
Setting this variable to t makes it so that when on the last
page, pressing C-h calls the default function instead of
cycling pages. If you want which-key to cycle, set this to
nil."
(defcustom which-key-prevent-C-h-from-cycling t
"When using C-h for paging, which-key overrides the default
behavior of calling `describe-prefix-bindings'. Setting this
variable to t makes it so that when on the last page, pressing
C-h calls the default function instead of cycling pages. If you
want which-key to cycle, set this to nil."
:group 'which-key
:type 'boolean)