views:

255

answers:

4

Can I use powershell as the shell, in shell mode for emacs?
How?

+2  A: 

A quick Google reveals this Emacs plugin for Powershell

Brian Agnew
This is interesting, but not what I was asking about. I was asking about how to RUN powershell within emacs, not how to EDIT powershell scripts within emacs.
Cheeso
+1  A: 

The quickest way to find out would be to run shell-mode, and then run powershell from the command line.

Charlie Martin
+3  A: 

See Jeffrey Snover's blog post PowerShell running inside of Emacs

John D. Cook
A more useful link would be http://blogs.msdn.com/dotnetinterop/archive/2008/04/10/run-powershell-as-a-shell-within-emacs.aspx
Chris Conway
+1  A: 

Based on the blog post Run PowerShell as a shell within Emacs:

  • In the install directory for Emacs within ..\emacs\site-lisp, save a new file named powershell.el as provided in the post mentioned above.

  • Add the following to your .emacs file:

    (autoload 'powershell "powershell" "Run powershell as a shell within emacs." t)

Once done, use M-x powershell to open and interactively use a PS shell buffer.

Ray Vega