diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2019-12-06 19:09:41 +0100 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2019-12-06 19:54:29 +0100 |
commit | 66d948e9848968bed6a382f0bf3e592e570bebe1 (patch) | |
tree | 33a4267a5388804e1121bf675a38d3cd88eb2c66 /helm-config.el | |
parent | 7b29c22efa491497e293b295e0885c8dac372ef3 (diff) |
Allow remapping helm-minibuffer-history-key
* helm-config.el (helm-minibuffer-history-key): Do it.
* helm-misc.el (helm-minibuffer-history): Change prompt.
Diffstat (limited to 'helm-config.el')
-rw-r--r-- | helm-config.el | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/helm-config.el b/helm-config.el index 36107538..88b682cd 100644 --- a/helm-config.el +++ b/helm-config.el @@ -59,13 +59,16 @@ minibuffer-local-must-match-filename-map ; Older Emacsen minibuffer-local-must-match-map minibuffer-local-ns-map)) - (when (and (boundp map) (keymapp (symbol-value map))) - (when (and (boundp var) (symbol-value var)) - (define-key (symbol-value map) - (read-kbd-macro (symbol-value var)) nil)) - (when key - (define-key (symbol-value map) - (read-kbd-macro key) 'helm-minibuffer-history)))) + (let ((vmap (symbol-value map))) + (when (and (boundp map) (keymapp vmap)) + (helm-aif (and (boundp var) (symbol-value var)) + (define-key vmap + (if (stringp it) (read-kbd-macro it) it) + nil)) + (when key + (define-key (symbol-value map) + (if (stringp key) (read-kbd-macro key) key) + 'helm-minibuffer-history))))) (set var key))) ;;; Command Keymap |