我可以使用以下功能取消设置左右键。
(global-unset-key [left])
(global-unset-key [up])
(global-unset-key [right])
(global-unset-key [down])
但是为什么我不能使用 global-unset-key 取消向上和向下翻页?下面的代码不起作用。
(global-unset-key [pgup])
(global-unset-key [pgdn])
您可以使用C-h k *key-you-want-to-look*
.
;;; from *help* buffer, after C-h k pagedown
;; <next> runs the command scroll-up, which is an interactive built-in
;; function in `C source code'.
;;; from *help* buffer, after C-h k pageup
;; <prior> runs the command scroll-down, which is an interactive built-in
;; function in `C source code'.
(define-key (current-global-map) (kbd "<next>") nil) ; use whatever
(global-unset-key (kbd "<prior>")) ; you like