* setting the default directory on Windows startup
@ 2002-09-19 22:10 Alan Barton
2002-09-20 12:08 ` Kevin Dziulko
0 siblings, 1 reply; 5+ messages in thread
From: Alan Barton @ 2002-09-19 22:10 UTC (permalink / raw)
I'm a new user of emacs on Windows, although I have some experience on Linux
OS versions. When I open an emacs session and select 'File' -> 'Open file'
, my directory tree starts looking in 'c:\emacs\bin\' when I would prefer
that it start looking in my 'c:\home' directory.
I found the variable 'insert-default-directory', but this just seems to be a
toggle switch, and does not allow me to input the name of a new default
directory. I'm aware that I can simply 'cd' in to my working directory each
time I open an emacs session, but I'd like my sessions to automatically 'cd'
to my working directory on startup. How do I go about doing this?
Thanks for your assistance.
-Alan Barton
abarton@coas.oregonstate.edu
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: setting the default directory on Windows startup
@ 2002-09-19 22:44 Bingham, Jay
0 siblings, 0 replies; 5+ messages in thread
From: Bingham, Jay @ 2002-09-19 22:44 UTC (permalink / raw)
One way to do this is to open the properties for each shortcut that you have for starting emacs and put c:\ in the start in: field. There may be other ways but when I found this one I quit looking.
By the way there is a mail list just for emacs windows http://mail.gnu.org/mailman/listinfo/help-emacs-windows
-_
J_)
C_)ingham
. HP - NonStop Austin Software & Services - Software Product Assurance
. Austin, TX
. Language is the apparel in which your thoughts parade in public.
. Never clothe them in vulgar and shoddy attire. -Dr. George W. Crane-
-----Original Message-----
From: Alan Barton [mailto:abarton@coas.oregonstate.edu]
Sent: Thursday, September 19, 2002 5:11 PM
To: help-gnu-emacs@gnu.org
Subject: setting the default directory on Windows startup
I'm a new user of emacs on Windows, although I have some experience on Linux
OS versions. When I open an emacs session and select 'File' -> 'Open file'
, my directory tree starts looking in 'c:\emacs\bin\' when I would prefer
that it start looking in my 'c:\home' directory.
I found the variable 'insert-default-directory', but this just seems to be a
toggle switch, and does not allow me to input the name of a new default
directory. I'm aware that I can simply 'cd' in to my working directory each
time I open an emacs session, but I'd like my sessions to automatically 'cd'
to my working directory on startup. How do I go about doing this?
Thanks for your assistance.
-Alan Barton
abarton@coas.oregonstate.edu
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: setting the default directory on Windows startup
[not found] <mailman.1032473476.3686.help-gnu-emacs@gnu.org>
@ 2002-09-19 22:52 ` Jesper Harder
2002-09-21 13:12 ` maierh
1 sibling, 0 replies; 5+ messages in thread
From: Jesper Harder @ 2002-09-19 22:52 UTC (permalink / raw)
"Alan Barton" <abarton@coas.oregonstate.edu> writes:
> I'm aware that I can simply 'cd' in to my working directory each time
> I open an emacs session, but I'd like my sessions to automatically
> 'cd' to my working directory on startup. How do I go about doing
> this?
Simply put
(cd "/my/directory")
in your .emacs file.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: setting the default directory on Windows startup
2002-09-19 22:10 setting the default directory on Windows startup Alan Barton
@ 2002-09-20 12:08 ` Kevin Dziulko
0 siblings, 0 replies; 5+ messages in thread
From: Kevin Dziulko @ 2002-09-20 12:08 UTC (permalink / raw)
Cc: abarton
Add this to your _emacs file:
(setq default-directory "C:\\home/")
Kevin
On Thu, 19 Sep 2002, Alan Barton wrote:
> I'm a new user of emacs on Windows, although I have some experience on Linux
> OS versions. When I open an emacs session and select 'File' -> 'Open file'
> , my directory tree starts looking in 'c:\emacs\bin\' when I would prefer
> that it start looking in my 'c:\home' directory.
>
> I found the variable 'insert-default-directory', but this just seems to be a
> toggle switch, and does not allow me to input the name of a new default
> directory. I'm aware that I can simply 'cd' in to my working directory each
> time I open an emacs session, but I'd like my sessions to automatically 'cd'
> to my working directory on startup. How do I go about doing this?
>
> Thanks for your assistance.
> -Alan Barton
> abarton@coas.oregonstate.edu
>
>
>
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: setting the default directory on Windows startup
[not found] <mailman.1032473476.3686.help-gnu-emacs@gnu.org>
2002-09-19 22:52 ` Jesper Harder
@ 2002-09-21 13:12 ` maierh
1 sibling, 0 replies; 5+ messages in thread
From: maierh @ 2002-09-21 13:12 UTC (permalink / raw)
"Alan Barton" <abarton@coas.oregonstate.edu> writes:
> I'm a new user of emacs on Windows, although I have some experience on Linux
> OS versions. When I open an emacs session and select 'File' -> 'Open file'
> , my directory tree starts looking in 'c:\emacs\bin\' when I would prefer
> that it start looking in my 'c:\home' directory.
I like this solution as the best because it gives the same behavior
as under Unix. Put the follwoing into your .emacs file.
Harald
,----
| (defun buffer-set-default-directory ( dir )
| "Set the current directory to DIR for buffers that do not have a
| file name associated. The function is indented for the w32 port to set
| the login directory (~/) because on startup the default directory for
| *scratch* and *Messages* are the emacs bin directory or the long
| directory name that was set in the properties of a emacs icon."
| (save-excursion
| (let (
| (list (buffer-list))
| )
| (while list
| (set-buffer (car list))
| (if (eq buffer-file-name nil)
| (setq default-directory dir)
| )
| (setq list (cdr list))
| ))))
|
| (buffer-set-default-directory "~/")
`----
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-09-21 13:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-19 22:10 setting the default directory on Windows startup Alan Barton
2002-09-20 12:08 ` Kevin Dziulko
-- strict thread matches above, loose matches on Subject: below --
2002-09-19 22:44 Bingham, Jay
[not found] <mailman.1032473476.3686.help-gnu-emacs@gnu.org>
2002-09-19 22:52 ` Jesper Harder
2002-09-21 13:12 ` maierh
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.