如何从按键“代码”回到键盘的等效性?


9

我有以下文档:

mc/keymap is a variable defined in `multiple-cursors-core.el'.
Its value is (keymap
 (67108903 . mc-hide-unmatched-lines-mode)
 (27 keymap
     (118 . mc/cycle-backward))
 (22 . mc/cycle-forward)
 (return . multiple-cursors-mode)
 (7 . mc/keyboard-quit))


Documentation:
Keymap while multiple cursors are active.
Main goal of the keymap is to rebind C-g and <return> to conclude
multiple cursors editing.

[back]

我知道C-gC-v722分别,但我不知道任何其他人都。我有可以使用的功能吗?

(equal (??? (kbd x)) x) => t

Answers:


14

help-key-description用于在调用describe-keyC-hk)时在文档中显示易于理解的键。

(help-key-description [22] nil)       ;; --> "C-v"

(help-key-description [67108903] nil) ;; --> "C-'"

要么

(string=
  (help-key-description (kbd "C-g") nil)
  "C-g")
;; --> t
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.