Set the shell type in dot-emacs.
ReneFroger opened this issue · comments
Setup:
GUI version GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)
of 2015-07-25 on KAEL
Shell-pop, using the latest version of shell-pop from MELPA
Windows 7 x64 bit.
Situation:
How could I set up the type of shell in my Dot-emacs?
When I run M-x eshell, the eshell pop ups and is working fine.
When I set it up in my dot-Emacs with the following:
(setq shell-pop-shell-type '("eshell" "*eshell*" (lambda () (eshell))))
And I call M-x shell-pop, I get the default shell instead Eshell.
When I do C-h v shell-pop-shell-type
, then I get the following:
shell-pop-shell-type is a variable defined in ‘shell-pop.el’.
Its value is ("eshell" "*eshell*" (lambda nil (eshell)))
Original value was
("shell" "*shell*"
(lambda nil
(shell)))
So somewhere the Eshell configuration didn't get applied. Any suggestion to debug this?
Could you add following code your configuration file and try again ?
(custom-set-variables
'(shell-pop-term-shell "eshell")
'(shell-pop-shell-type '("eshell" "eshell" (lambda () (eshell)))))
@syohex thanks for your reply, but it didn't help, I still get the default shell after inserting your code in my dot-emacs and restarted Emacs.
Hmm, I cannot reproduce with above configuration.
You're right. It turned out that the configuration file for pop-shell was never initialized. Now it's working. Thanks for your help and support, Syohex, it's really appreciated!