I have Emacs running via Cygwin istall. In Emacs I have installed (via package-install
) powershell
package; however, when I run M-x powershell
I get the following error:
Searching for program: no such file or directory, c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe
The problem here is that instead of c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe
the path to PowerShell.exe
should be /cygdrive/c/windows/system32/WindowsPowerShell/v1.0/powershell.exe
My question is: how do I configure package powershell
to point to the right path?
You can set the variable powershell-location-of-exe
, either directly with setq
in your .emacs
file:
(setq powershell-location-of-exe "/cygdrive/c/windows/system32/WindowsPowerShell/v1.0/powershell.exe")
or through M-x customize-option
.