[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open terminal window from emacs

From: Pascal J. Bourguignon
Subject: Re: Open terminal window from emacs
Date: Fri, 27 Sep 2013 23:21:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Frederik <address@hidden> writes:

> Hey,
> 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).
> 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.

(shell-command (format "cd %S ; /usr/bin/urxvt" default-directory))

__Pascal Bourguignon__

reply via email to

[Prev in Thread] Current Thread [Next in Thread]