I do always work with emacs in no windows mode (emacs -nw) inside Guake, and I have set guake to open a new tab in the same directory on which I'm in that moment.
My purpose is:
- If I work with a certain file in emacs, and I open a new tab, I want the path (
PWD variable
) is the same of the file. - When I close emacs, the PWD variable is restored with its original value.
How can I set my .emacs
file to achieve that?