2012-06-13 26 views
2

我可以取消設置關鍵字,使用下面的功能。在emacs中取消設置關鍵頁向上和向下翻頁

(global-unset-key [left]) 
(global-unset-key [up]) 
(global-unset-key [right]) 
(global-unset-key [down]) 

但我爲什麼不能取消設置頁面和使用全球取消設置鍵翻頁?下面的代碼不起作用。

(global-unset-key [pgup]) 
(global-unset-key [pgdn]) 

回答

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 
+0

謝謝,desudesudesu – louxiu

相關問題