From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: gerlach Newsgroups: gmane.emacs.help Subject: Re: How to change default "insert file" path /tmp to home directory? Date: Mon, 13 May 2013 23:08:15 +0200 Message-ID: References: <877gj6sg4g.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1368479735 4908 80.91.229.3 (13 May 2013 21:15:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 May 2013 21:15:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 13 23:15:35 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uc05n-00056x-DQ for geh-help-gnu-emacs@m.gmane.org; Mon, 13 May 2013 23:15:35 +0200 Original-Received: from localhost ([::1]:45118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uc05m-00069D-VV for geh-help-gnu-emacs@m.gmane.org; Mon, 13 May 2013 17:15:34 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-X-Trace: individual.net YZqEcpbL7BCns02HJrKpEw1ATtqg+mmfMDzFcRI3Qr+g+LIa+y Cancel-Lock: sha1:Max9wU9Zy+qv8tQ6YLgtZ3yuG4M= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 In-Reply-To: <877gj6sg4g.fsf@kuiper.lan.informatimago.com> Original-Xref: usenet.stanford.edu gnu.emacs.help:198459 X-Mailman-Approved-At: Mon, 13 May 2013 17:15:24 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90726 Archived-At: Am 10.05.2013 23:02, schrieb Pascal J. Bourguignon: > gerlach writes: > >> Hi, >> I googl'ed a lot and didn't find it: how can I change the default >> "insert path" (ctrl-x i) from /tmp to e.g. /home/gerlach ? > > M-: (setq default-directory "/home/gerlach/") RET > > i state today that its any longer working! Default directory is /tmp once again. At least in Why? my /home/gerlach/.emacs (setq fill-column 50) (add-hook 'before-save-hook 'delete-trailing-whitespace) (setq default-directory "/home/gerlach/") BTW: (setq fill-column 50) is ignored. Even if I insert 20 instead of 50. Why? The .emacs file is found and read, the proof: when I produce a error like (setq asdasdfasdfasdf fill-column 50) the error is claimed by emacs at start. (add-hook 'before-save-hook 'delete-trailing-whitespace) is also ignored. I have to execute the command explicitely. Then I want to enable php highlightning with my old emacs (Suse 11.1, don't know the version) this worked fine: (setq auto-mode-alist (append '( (".*\.php$" .html-mode) (".*\.php$" .html-mode) ) auto-mode-alist)) In my actual emacs 23.3.1 nothing works ... even not default-directory "/home/gerlach/" ... incredible ... WHY? I use emacs in text mode (-nw) only. tia Eckard