|
From: | gerlach |
Subject: | Re: How to change default "insert file" path /tmp to home directory? |
Date: | Mon, 13 May 2013 23:31:20 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 |
Am 13.05.2013 23:08, schrieb gerlach:
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/") RETi 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 ... !?!
works now in my ubuntu 12.04. aptitude install php-elisp installed the php plugin and that code in .emacsThen 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))
(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
[Prev in Thread] | Current Thread | [Next in Thread] |