help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: shell-current-directory - other window command needed


From: Peter Dyballa
Subject: Re: shell-current-directory - other window command needed
Date: Wed, 28 Oct 2009 20:02:03 +0100


Am 28.10.2009 um 17:14 schrieb Andreas Politz:

shell-current-directory is an emacs package which allows one to create a shell whose starting directory is the same as the buffer the command
'shell-current-directory' was invoked in.

The code for the command is here:
http://github.com/metaperl/emacs/blob/master/shell-current- directory.el#L92


The behaviour of M-x shell RET in recent Emacsen is exactly like this: it sets the new shell's current working directory to that of the buffer from which it was invoked. If the buffer is not associated with a file, then $HOME or, maybe, the directory from where GNU Emacs was launched, is chosen.

--
Greetings

  Pete

Hard Disk, n.:
        A device that allows users to delete vast quantities
        of data with simple mnemonic commands.








reply via email to

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