在emacs中取消设置关键页面的上移和下移

lou*_*xiu 3 linux emacs elisp

我可以使用以下功能从左到右取消设置按键。

(global-unset-key [left])
(global-unset-key [up])
(global-unset-key [right])
(global-unset-key [down])
Run Code Online (Sandbox Code Playgroud)

但是为什么我不能使用global-unset-key取消设置页面设​​置和向下设置?下面的代码不起作用。

(global-unset-key [pgup])
(global-unset-key [pgdn])
Run Code Online (Sandbox Code Playgroud)

des*_*esu 5

您可以使用查找它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
Run Code Online (Sandbox Code Playgroud)