diff options
| author | justbur | 2016-03-10 19:51:58 -0500 |
|---|---|---|
| committer | justbur | 2016-03-10 19:54:56 -0500 |
| commit | 2d8767caa4e926027bf106450e0df7286f5e0a2d (patch) | |
| tree | 6f6095db1678888586f809c0b8ef78ddee239400 | |
| parent | e81b7898aca445b77808085c642d18721ba9d1f4 (diff) | |
| download | emacs-2d8767caa4e926027bf106450e0df7286f5e0a2d.tar.gz emacs-2d8767caa4e926027bf106450e0df7286f5e0a2d.zip | |
Disable special-keys option by default
It's probably too surprising to have enabled by default.
| -rw-r--r-- | README.org | 4 | ||||
| -rw-r--r-- | which-key.el | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/README.org b/README.org index 52429939f49..b955fbe0b9e 100644 --- a/README.org +++ b/README.org | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | * which-key | 1 | * which-key |
| 2 | [[http://melpa.org/#/which-key][http://melpa.org/packages/which-key-badge.svg]] [[http://stable.melpa.org/#/which-key][file:http://stable.melpa.org/packages/which-key-badge.svg]] | 2 | [[http://melpa.org/#/which-key][http://melpa.org/packages/which-key-badge.svg]] [[http://stable.melpa.org/#/which-key][file:http://stable.melpa.org/packages/which-key-badge.svg]] |
| 3 | ** What's New | 3 | ** Semi-Recent Changes |
| 4 | - =which-key-special-keys= is now disabled by default. See the docstring for the | ||
| 5 | old setting. | ||
| 4 | - =C-h= commands! Now =C-h= will prompt you will several options instead of | 6 | - =C-h= commands! Now =C-h= will prompt you will several options instead of |
| 5 | going directly to the next page. You can (see =which-key-C-h-map=) | 7 | going directly to the next page. You can (see =which-key-C-h-map=) |
| 6 | - Cycle through the pages forward with =n= (or =C-n=) | 8 | - Cycle through the pages forward with =n= (or =C-n=) |
diff --git a/which-key.el b/which-key.el index 1971dc9b84c..d874e18d297 100644 --- a/which-key.el +++ b/which-key.el | |||
| @@ -150,9 +150,12 @@ the element is a cons cell, it should take the form (regexp . | |||
| 150 | face to apply)." | 150 | face to apply)." |
| 151 | :group 'which-key) | 151 | :group 'which-key) |
| 152 | 152 | ||
| 153 | (defcustom which-key-special-keys '("SPC" "TAB" "RET" "ESC" "DEL") | 153 | (defcustom which-key-special-keys '() |
| 154 | "These keys will automatically be truncated to one character | 154 | "These keys will automatically be truncated to one character |
| 155 | and have `which-key-special-key-face' applied to them." | 155 | and have `which-key-special-key-face' applied to them. This is |
| 156 | disabled by default. Try this to see the effect. | ||
| 157 | |||
| 158 | \(setq which-key-special-keys '(\"SPC\" \"TAB\" \"RET\" \"ESC\" \"DEL\")\)" | ||
| 156 | :group 'which-key | 159 | :group 'which-key |
| 157 | :type '(repeat string)) | 160 | :type '(repeat string)) |
| 158 | 161 | ||