[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: specifying coding system on the first/second line
From: |
Reiner Steib |
Subject: |
Re: specifying coding system on the first/second line |
Date: |
Tue, 11 Oct 2005 19:28:13 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
On Tue, Oct 11 2005, Radomir Hejl wrote:
> On the second line of my file I have the following text:
> # -*- coding: utf-8;-*-
> The first line is an interpreter command.
[...]
> What should I fix to remedy this?
,----[ (info "(emacs)File Variables") ]
| In shell scripts, the first line is used to identify the script
| interpreter, so you cannot put any local variables there. To
| accommodate for this, when Emacs visits a shell script, it looks for
| local variable specifications in the _second_ line.
|
| A "local variables list" goes near the end of the file, in the last
| page. (It is often best to put it on a page by itself.) The local
| variables list starts with a line containing the string `Local
| Variables:', and ends with a line containing the string `End:'. In
| between come the variable names and values, one set per line, as
| `VARIABLE: VALUE'. The VALUEs are not evaluated; they are used
| literally. If a file has both a local variables list and a `-*-' line,
| Emacs processes _everything_ in the `-*-' line first, and _everything_
| in the local variables list afterward.
|
| Here is an example of a local variables list: [...]
`----
Example:
# Local Variables:
# coding: utf-8
# End:
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/