From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: giampi <giampisalvi@gmail.com>
Newsgroups: gmane.emacs.help
Subject: Re: directory specific configuration
Date: Tue, 21 Jul 2009 08:48:21 -0700 (PDT)
Message-ID: <24590342.post@talk.nabble.com>
References: <24585256.post@talk.nabble.com> <87zlayvyx3.fsf@sphinx.net.ru>
NNTP-Posting-Host: lo.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: ger.gmane.org 1248192456 30995 80.91.229.12 (21 Jul 2009 16:07:36 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 21 Jul 2009 16:07:36 +0000 (UTC)
To: Help-gnu-emacs@gnu.org
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 21 18:07:29 2009
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geh-help-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([199.232.76.165])
	by lo.gmane.org with esmtp (Exim 4.50)
	id 1MTHsG-0003LE-Qf
	for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jul 2009 18:07:29 +0200
Original-Received: from localhost ([127.0.0.1]:60943 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1MTHsG-0001M7-7z
	for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jul 2009 12:07:28 -0400
Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1MTHZt-0004vO-0W
	for help-gnu-emacs@gnu.org; Tue, 21 Jul 2009 11:48:29 -0400
Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1MTHZo-0004qm-Ci
	for Help-gnu-emacs@gnu.org; Tue, 21 Jul 2009 11:48:28 -0400
Original-Received: from [199.232.76.173] (port=52056 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1MTHZo-0004qa-0Y
	for Help-gnu-emacs@gnu.org; Tue, 21 Jul 2009 11:48:24 -0400
Original-Received: from kuber.nabble.com ([216.139.236.158]:43002)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <bounces@nabble.com>) id 1MTHZn-00013E-Hr
	for Help-gnu-emacs@gnu.org; Tue, 21 Jul 2009 11:48:23 -0400
Original-Received: from isper.nabble.com ([192.168.236.156])
	by kuber.nabble.com with esmtp (Exim 4.63)
	(envelope-from <bounces@nabble.com>) id 1MTHZl-0001MY-Gz
	for Help-gnu-emacs@gnu.org; Tue, 21 Jul 2009 08:48:21 -0700
In-Reply-To: <87zlayvyx3.fsf@sphinx.net.ru>
X-Nabble-From: giampisalvi@gmail.com
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3)
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.help:66316
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/66316>


Hi,
thanks Thierry and Dmitry for your fast answers.

To Thierry: I'll probably use you solution for the time being, but I would
prefer not to add emacs specific lines in the files. I co-author them with
colleagues using other editors (I know they are comment lines that do not
cause problems for others, but it would be cleaner to avoid them).

To Dmitry: directory variables seem to do exactly what I need. A drawback is
that I need to change my "global local" ~/.emacs for each directory I add.
The scenario I'm thinking about is checking out the .tex files from an svn
repository and get the configuration I need with them (regardless of the
computer I'm sitting at). In this scenario it is not easy to automatically
change the ~/.emacs file, and even if I change it manually, it is not
possible to include the changes in svn.

In a perfect world, at least IMHO, emacs would read by default a local
.emacs file, if existent, on opening any file. All the configurations would
therefore be local to that directory. I'm not sure if this would slow down
opening a file.

Is there anything like that?
Thanks again,
Giampiero
-- 
View this message in context: http://www.nabble.com/directory-specific-configuration-tp24585256p24590342.html
Sent from the Emacs - Help mailing list archive at Nabble.com.