[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
add-file-local-variable-prop-line
From: |
chad |
Subject: |
add-file-local-variable-prop-line |
Date: |
Wed, 08 Dec 2010 15:34:40 -0000 |
User-agent: |
G2/1.0 |
I'm writing a convenience function to set the major mode for some
files, and I'd like to also set the `-*-' indicator to the desired
mode. When I was doing it by hand, I was using syntax like:
-*- org -*-
on the initial line, rather than the longer:
-*- mode: org; -*-
format. I assumed that there would be a function for this, and there
is: add-file-local-variable-prop-line will do what I want, but doesn't
seem to support the simpler syntax. I can make the simpler syntax
work, but I wonder if there is some policy change or feature that
really prefers the more explicit syntax.
Thanks!
- add-file-local-variable-prop-line,
chad <=