From mboxrd@z Thu Jan 1 00:00:00 1970 From: janek Subject: Re: Variable settings in .emacs VS cross device portability. Date: Mon, 06 Feb 2012 20:55:53 +0100 Message-ID: <87ehu7pwhi.fsf@ibmx60t.lan> References: <87k448y9gp.fsf@gmx.com> <87ehuf4rar.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuV2o-0001XQ-7M for emacs-orgmode@gnu.org; Mon, 06 Feb 2012 15:20:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuV2k-0004C2-DO for emacs-orgmode@gnu.org; Mon, 06 Feb 2012 15:20:10 -0500 Received: from plane.gmane.org ([80.91.229.3]:45650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuV2k-0004BS-4v for emacs-orgmode@gnu.org; Mon, 06 Feb 2012 15:20:06 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RuV2h-0002oW-Hu for emacs-orgmode@gnu.org; Mon, 06 Feb 2012 21:20:03 +0100 Received: from host88.router7.tygrys.net ([213.108.118.88]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Feb 2012 21:20:03 +0100 Received: from jan0x6c by host88.router7.tygrys.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Feb 2012 21:20:03 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Yu writes: > code). The emacs-documentation doesn't mention it, but apparently this > works also in shebang'ed files, by moving the single line form (`-*- > ... -*-') to the second line. [2] > > [1] http://www.gnu.org/software/emacs/manual/html_node/emacs/File-Variables.html > [2] http://www.lugaru.com/man/File.Variables.html Choosing File Modes (info "(emacs) Choosing Modes") info:emacs#Choosing%20Modes When the first line starts with `#!', you usually cannot use the `-*-' feature on the first line, because the system would get confused when running the interpreter. So Emacs looks for `-*-' on the second line in such files as well as on the first line.