From 73ff071ec3c9af48bb5d9db15e6be607205503b2 Mon Sep 17 00:00:00 2001 From: justbur Date: Wed, 2 Sep 2015 12:57:46 -0400 Subject: [PATCH] Make preventing C-h cycling the default --- README.org | 10 +++++----- which-key.el | 13 ++++++------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/README.org b/README.org index 893d36dee3b..d8eb11c459a 100644 --- a/README.org +++ b/README.org @@ -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) diff --git a/which-key.el b/which-key.el index e57a63f1f3d..86fe9fb2156 100644 --- a/which-key.el +++ b/which-key.el @@ -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)