[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Default directory in startup buffer
From: |
Kevin Rodgers |
Subject: |
Re: Default directory in startup buffer |
Date: |
Mon, 31 Jan 2011 19:16:27 -0700 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 |
On 1/21/11 12:53 AM, Jarmo Hurri wrote:
I am installing GNU Emacs on a bunch of Windows machines for a group of
students in order for them to be able to run R via ESS. So the students
will just start Emacs and run R in it. I just installed the newest
version of GNU Emacs from emacs-22.3-bin-i386.zip.
The most recently released version is actually 23.2.
The problem is that the startup screen does not obey
default-directory. Putting the following line in site-startup.el
(setq default-directory "~/")
does change the default directory in buffer "*scratch*", but not in
buffer "*GNU Emacs*"
(mapc (lambda (buffer)
(with-current-buffer buffer
(setq default-directory "~/")))
(buffer-list))
...
[ As a related note, I found it surprising that I had to include the
line
(setq default-directory "~/")
in site-start.el in order to get a reasonable default directory even
in buffer "*scratch*". Should that kind of behaviour be the default in
Emacs? ]
Did you specify the start directory, in the Start In property of the program
shortcut?
--
Kevin Rodgers
Denver, Colorado, USA