Currently, I have following key binding defined in my
(global-set-key (kbd "C-c C-SPC") (lambda() (interactive) (term (getenv "SHELL"))))
As it is easy to see, it executes the
term command with my default shell.
The terminal is open with
pwd equal to
default-directory, which by default corresponds to the directory of the file I'm currently editing.
What I would like to do is be able to open it in
command-line-default-directory. That's, in the directory from which I launched Emacs. However, I don't want to change
default-directory variable, because it's behavior is ok for me for any other purpose.