我正在org-mode
为新的 emacs 模式编写自述文件(in ),在安装说明中,我们介绍了如何基于每个文件启用该模式:
or at the end of your file:
#+BEGIN_SRC emacs-lisp
! Local Variables:
! mode: f90-namelist
! End:
#+END_SRC
问题是这会将 README.org 文件放入我们的 newf90-namelist-mode
而不是org-mode
. 将另一个局部变量列表放在文件末尾# mode: org
不起作用,尽管放
# -*- enable-local-variables: query -*-
让我接受或拒绝所有局部变量,然后 emacs 从.org
文件扩展名中确定主要模式。这排除了我可能想要包含的任何其他局部变量。
有没有更优雅的方式在文本中包含文字局部变量列表?