branch: master
commit 72d4c76f6bfaa23a7b0e5b02fe4c2f87d6963aaa
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
Replace "C-x 6" with "<f2>" in counsel-M-x
counsel.el (counsel--format-function-M-x): Update.
---
counsel.el | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/counsel.el b/counsel.el
index e7ee160..5717b21 100644
--- a/counsel.el
+++ b/counsel.el
@@ -493,6 +493,7 @@ If a command is bound, add it's binding after it."
(with-selected-window (ivy-state-window ivy-last)
(mapconcat (lambda (x)
(let ((binding (substitute-command-keys (format "\\[%s]" x))))
+ (setq binding (replace-regexp-in-string "C-x 6" "<f2>"
binding))
(if (string-match "^M-x" binding)
x
(format "%s (%s)" x