Skip to content
An Emacs mode for editing and running Microsoft PowerShell code.
Emacs Lisp
Branch: master
Clone or download
xeijin and jschaf Programmatically find powershell executable (#25)
And make this cross platform (i.e. works with PowerShell Core for Linux/macOS)
Latest commit 8782677 Apr 21, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Add .gitignore and ignore compiled elisp. Jun 6, 2013 Update MELPA's URL Feb 5, 2016
powershell.el Programmatically find powershell executable (#25) Apr 21, 2019

PowerShell Mode

PowerShell Mode is an Emacs major mode for editing and running Microsoft PowerShell files.



First, add the package repository:

(add-to-list 'package-archives
             '("melpa" . "") t)

Then install powershell.el:

M-x package-install RET powershell RET


powershell.el is included in the El-Get repository

Install powershell.el:

M-x el-get-install RET powershell.el RET


Download powershell.el and place the download directory on your load-path like so:

(add-to-list 'load-path "~/.emacs.d/path/to/powershell")


I combined powershell.el and powershell-mode.el (last updated October 2012). I used the name powershell.el with the permission of the creator, Dino Chiesa. Since powershell.el was licensed with the new BSD license I combined the two files using the more restrictive license, the GPL. I also cleaned up the documentation and reorganized some of the code.

You can’t perform that action at this time.