From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: find-file, default path Date: Tue, 19 Jul 2005 18:23:54 +0200 Message-ID: <42DD291A.9090204@student.lu.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1121790318 3230 80.91.229.2 (19 Jul 2005 16:25:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jul 2005 16:25:18 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 19 18:25:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DuutQ-00043R-QW for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jul 2005 18:24:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DuuvQ-0004DS-2r for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jul 2005 12:26:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DuuvB-0004Cp-FW for help-gnu-emacs@gnu.org; Tue, 19 Jul 2005 12:26:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Duuv6-0004Av-H7 for help-gnu-emacs@gnu.org; Tue, 19 Jul 2005 12:26:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Duuv6-0004Al-Dq for help-gnu-emacs@gnu.org; Tue, 19 Jul 2005 12:26:12 -0400 Original-Received: from [81.228.8.83] (helo=pne-smtpout1-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Duv28-0005GS-GH for help-gnu-emacs@gnu.org; Tue, 19 Jul 2005 12:33:28 -0400 Original-Received: from [192.168.123.121] (83.249.205.6) by pne-smtpout1-sn2.hy.skanova.net (7.2.060.1) id 42BFBBD2003B1A48; Tue, 19 Jul 2005 18:23:55 +0200 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: Alex Schroeder In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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:28018 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28018 Alex Schroeder wrote: >Jan Guido Donath schrieb: > > >>is it possible to pass find-file a default path? >>i do have all my files in a certain directory, but find-file aka C-x C-f >>always starts where the emacs bins are located. >> >> > >Just start emacs from a different directory or with a different "working >directory". > > Or set `default-directory' in your .emacs: (setq default-directory "/my/files/directory/") `default-directory' will later change to the dir of the file you are editing.