设置
我有 Helm 命令的这些键绑定:
(define-key helm-map (kbd "C-a") #'helm-select-action)
(define-key helm-map (kbd "C-n") #'helm-next-page)
(define-key helm-map (kbd "C-p") #'helm-previous-page)
(define-key helm-map (kbd "TAB") #'helm-next-line)
(define-key helm-map (kbd "<backtab>") #'helm-previous-line)
(define-key helm-map (kbd "C-TAB") #'helm-toggle-visible-mark-forward)
问题
除了最后一行,所有这些都有效helm-toggle-visible-mark-forward
。当我在 Helm 完成窗口中点击 C-TAB 时,我收到错误消息,<C-tab> is undefined
.
我试过的
使用\t
(define-key helm-map (kbd "C-\t") #'helm-toggle-visible-mark-forward)
——同样的结果,<C-tab> is undefined
使用<C-tab>
(define-key helm-map (kbd "<C-tab>") #'helm-toggle-visible-mark-forward)
--wrong type argument, commandp
移除#
(define-key helm-map (kbd "C-TAB") 'helm-toggle-visible-mark-forward)
——同样的结果,<C-tab> is undefined
使用M-TAB
(define-key helm-map (kbd "M-TAB") #'helm-toggle-visible-mark-forward)
--wrong type argument, commandp
使用 lambda
(define-key helm-map (kbd "M-TAB") (lambda () (interactive) (helm-toggle-visible-mark-forward)))
--symbol's function definition is void: helm-toggle-visible-mark-forward
问题
可以重新绑定helm-toggle-visible-mark-forward
吗?如果是这样,我做错了什么?