You need to override the
default-directory variable. I discovered that by...
C-h k SPC ' to learn
SPC ' is bound to
(spacemacs/default-pop-shell) which is defined in
- Opening the link to that file and seeing
spacemacs/default-pop-shell calls the
- With the cursor over
C-h f RET to see docs for
- Notice mention of
If ‘default-directory’ is a remote file name, it is also prompted
to change if called with a prefix arg.
Hopefully all those keybindings work. I'm currently using the hybrid keybinding mode since I don't know many Vim commands yet.
Then I tinkered with ielm to come up with a strategy for calling
shell with a custom
default-directory and came up with:
(defun shell-in-directory (dir)
(let ((default-directory dir))
;; opens a shell window at /usr/local/bin when evaluated
Let me know if you could use help integrating that with your keybindings.