【发布时间】:2014-02-14 07:54:37
【问题描述】:
我在 emacs 中使用 org-mode 和 ox-reveal。后者定义了命令 org-reveal-export-to-html,我想将它绑定到带有 org 文件的缓冲区的键,这些文件是演示文稿(因此不适用于所有 org 文件)。
所以问题是:如何在 org-mode 中定义文件本地键绑定?
我目前拥有的是这样的:
#+BEGIN_COMMENT
Local Variables:
eval: (local-set-key [f5] 'org-reveal-export-to-html)
End:
#+END_COMMENT
但是恕我直言,这不是很优雅。
【问题讨论】: