在emacs中取消设置关键页面和向下翻页

时间:2012-06-13 12:32:27

标签: linux emacs elisp

我可以使用下面的功能将左键向上取消。

(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])

1 个答案:

答案 0 :(得分:4)

您可以使用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