[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Open terminal window from emacs
From: |
Sven Joachim |
Subject: |
Re: Open terminal window from emacs |
Date: |
Sat, 28 Sep 2013 09:56:01 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
On 2013-09-27 22:46 +0200, Frederik wrote:
> I try to open up urxvt from emacs and make the terminal emulator
> automatically switch to the current working directory of the current
> buffer (i.e. to the value of default-directory).
Shouldn't the terminal emulator start in that directory automatically?
At least xterm does, I don't have urxvt around ATM.
> This is what I've come up with:
>
> (call-process "/usr/bin/urxvt" nil 0 nil
> (concat "-cd" default-directory))
>
> But this doesn't work.
>
> This
> (call-process "/usr/bin/urxvt" nil 0 nil
> "-cd ~/test")
> doesn't work either, even though the directory exits.
>
> Any pointers?
Seems to me the tilde does not get expanded here, so you would have to
use (expand-file-name default-directory) rather than just
default-directory.
Cheers,
Sven