all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: gerlach <jack@aiai.de>
To: help-gnu-emacs@gnu.org
Subject: Re: How to change default "insert file" path /tmp to home directory?
Date: Mon, 13 May 2013 23:31:20 +0200	[thread overview]
Message-ID: <avd4d8FdustU1@mid.individual.net> (raw)
In-Reply-To: <avd31vFdl82U1@mid.individual.net>

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/") 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
>
>



  reply	other threads:[~2013-05-13 21:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-10 20:23 How to change default "insert file" path /tmp to home directory? gerlach
2013-05-10 20:48 ` Peter Dyballa
2013-05-10 21:02 ` Pascal J. Bourguignon
2013-05-10 21:14   ` gerlach
2013-05-13 21:08   ` gerlach
2013-05-13 21:31     ` gerlach [this message]
2013-05-13 21:40     ` Peter Dyballa
2013-05-13 21:48     ` Barry Margolin
2013-05-11  0:50 ` Barry Margolin
2013-05-14  9:52   ` gerlach
2013-05-14 13:44     ` Suvayu Ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=avd4d8FdustU1@mid.individual.net \
    --to=jack@aiai.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.