Test code: Difference between revisions

From 清冽之泉
Jump to navigation Jump to search
Created page with ";; 将 Emacs 识别到的 <KEYCODE_X> 翻译为 <escape>(等于把右Alt当作 Meta 前缀) (define-key key-translation-map (kbd "<KEYCODE_X>") (kbd "<escape>"))"
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
;; 将 Emacs 识别到的 <KEYCODE_X> 翻译为 <escape>(等于把右Alt当作 Meta 前缀)
;; 把 Ctrl+Shift+Space 绑定为 set-mark-command
(define-key key-translation-map (kbd "<KEYCODE_X>") (kbd "<escape>"))
(global-set-key (kbd "C-S-SPC") #'set-mark-command)

Latest revision as of 01:36, 6 October 2025

把 Ctrl+Shift+Space 绑定为 set-mark-command

(global-set-key (kbd "C-S-SPC") #'set-mark-command)