help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to change default "insert file" path /tmp to home directory?


From: gerlach
Subject: Re: How to change default "insert file" path /tmp to home directory?
Date: Mon, 13 May 2013 23:08:15 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

Am 10.05.2013 23:02, schrieb Pascal J. Bourguignon:
gerlach <jack@aiai.de> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]