I'm writing the readme (in org-mode
) for a new emacs mode, and in the installation instructions we have how to enable the mode on a per-file basis:
or at the end of your file:
#+BEGIN_SRC emacs-lisp
! Local Variables:
! mode: f90-namelist
! End:
#+END_SRC
The problem is that this puts the README.org file into our new f90-namelist-mode
and not org-mode
. Putting another local variables list at the end of the file with # mode: org
doesn't work, although putting
# -*- enable-local-variables: query -*-
lets me accept or reject all of the local variables, and emacs then determines the major mode from the .org
file extension. This then precludes having any other local variables I might like to include.
Is there a more elegant way to include a literal local variables list in the text?