谈一下快捷捷冲突的问题。
Emacs几乎穷尽所有组合键
我用下面命令,在Fundamental模式下,枚举所有绑定。
(defun keymap-lookup-test-fn()
; printable keys
(setq printable-chars (number-sequence 33 126))
(setq i 0)
(while (< i (length printable-chars))
; (setq key-name (format "C-%c" (nth i printable-chars)))
; (setq key-name (format "M-%c" (nth i printable-chars)))
(setq key-name (format "C-M-%c" (nth i printable-chars)))
; (setq key-name (format (concat custom-user-prefix-key "%c" (nth i printable-chars))))
; (setq key-name (format (concat custom-user-prefix-key "C-%c" (nth i printable-chars))))
; (setq key-name (format "C-x %c" (nth i printable-chars)))
; (setq key-name (format "C-x C-%c" (nth i printable-chars)))
(setq key-desc (keymap-lookup (current-global-map) key-name))
(message " ----------