我有 2 个用于 dired 的热键,它们在 Emacs 的 GUI 模式下工作:
(add-hook 'dired-mode-hook
(lambda ()
(define-key dired-mode-map (kbd "C-<up>")
(lambda () (interactive) (find-alternate-file "..")))))
(add-hook 'dired-mode-hook
(lambda ()
(define-key dired-mode-map (kbd "C-<right>") 'diredp-find-file-reuse-dir-buffer)))
但是当我点击CTRL+→</kbd> or CTRL+↑</kbd> in console the cursor just moves as if the arrow was pressed.
当我尝试CTRL+H K然后CTRL+→</kbd>, it gives me the right key docs as if CTRL wasn't pressed at all.
如何在控制台中解决这种奇怪的行为?
我正在使用 Linux Slackware 14、Emacs 24.2.1。