[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cd to the user's home dir
From: |
Emanuel Berg |
Subject: |
Re: cd to the user's home dir |
Date: |
Sun, 18 May 2014 23:36:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Andrey Tykhonov <atykhonov@gmail.com> writes:
> I would like to be able to `cd' into the user's home
> directory in the same way as I can `cd' in the shell:
>
> cd ~admin
>
> I try in Emacs:
>
> M-x cd RET ~admin RET
>
> but it doesn't work. Emacs seems doesn't provide such
> functionality. Am I wrong?
`cd' changes the "default directory" of the current
buffer - e.g., so when you `find-file' in that buffer,
the prompt will by default be pointed at that
directory, as the most likely place you would want to
look.
I don't really get what you want - with dired, to show
the home directory's files:
(dired "~")
or perhaps:
(dired (getenv "HOME"))
- is that what you look for?
--
underground experts united:
http://user.it.uu.se/~embe8573
- cd to the user's home dir, Andrey Tykhonov, 2014/05/18
- Re: cd to the user's home dir,
Emanuel Berg <=
- Re: cd to the user's home dir, Andrey Tykhonov, 2014/05/18
- Re: cd to the user's home dir, Bob Proulx, 2014/05/18
- Re: cd to the user's home dir, Andrey Tykhonov, 2014/05/18
- RE: cd to the user's home dir, Drew Adams, 2014/05/18
- Re: cd to the user's home dir, Bob Proulx, 2014/05/18
- RE: cd to the user's home dir, Drew Adams, 2014/05/18
- Re: cd to the user's home dir, Andreas Röhler, 2014/05/19
- Re: cd to the user's home dir, Eli Zaretskii, 2014/05/19
Message not available