我试图设置 rst-mode 特定的键绑定,例如:
(eval-after-load "rst-mode"
(define-key rst-mode-map (kbd "<f5>")
(lambda ()
(interactive)
(shell-command "make html"))))
但我得到:
Symbol's value as variable is void: rst-mode-map
编辑:感谢帮助,我得到了以下工作版本:
(eval-after-load "rst"
'(progn
(define-key rst-mode-map (kbd "<f5>")
(lambda ()
(interactive)
(shell-command (concat "make " "html"))))))