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:31:20 +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 1368481095 19129 80.91.229.3 (13 May 2013 21:38:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 May 2013 21:38:15 +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:38:15 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 1Uc0Rj-0003Pw-7o for geh-help-gnu-emacs@m.gmane.org; Mon, 13 May 2013 23:38:15 +0200 Original-Received: from localhost ([::1]:55842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uc0Ri-0004s6-TP for geh-help-gnu-emacs@m.gmane.org; Mon, 13 May 2013 17:38:14 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 67 Original-X-Trace: individual.net ZptwvyujMA0s1S/s0koWcA8XlWGhvYbZcoTBmbMK+ovNdZivAc Cancel-Lock: sha1:A4teB08PzxqxuEi3kfHmM5CbMDo= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 In-Reply-To: Original-Xref: usenet.stanford.edu gnu.emacs.help:198460 X-Mailman-Approved-At: Mon, 13 May 2013 17:38:05 -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:90727 Archived-At: Am 13.05.2013 23:08, schrieb gerlach: > 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. 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. now it works ... I don't know what changed ... !?! > > > 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)) > works now in my ubuntu 12.04. aptitude install php-elisp installed the php plugin and that code in .emacs (global-font-lock-mode 1) (require 'php-mode) (setq auto-mode-alist (append '(("\.php$" . php-mode) ("\.module$" . php-mode)) auto-mode-alist)) > In my actual emacs 23.3.1 nothing works ... even not default-directory > "/home/gerlach/" ... incredible ... WHY? Any ideas? > > > I use emacs in text mode (-nw) only. > > tia > Eckard > >