Skip to content
An Emacs mode for editing Powershell code.
Emacs Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.org
powershell-mode.el

README.org

powershell-mode – A simple mode for editing Powershell code in Emacs.

Description

This mode was written from scratch, without using Vivek Sharma’s mode of the same name.

This is still pretty basic: there is indentation, syntax hilighting, speedbar/imenu support. The indentation is pretty naïve but robust, and sufficient for my current needs.

I am not likely to keep on developing this mode, as I’m no longer a user of Powershell.

See the initial Announcing a Powershell mode for Emacs post on emacs.sources.

Installation

The code is kept in my SVN repository, with a git mirror available. Retreive the .el file and put it somewhere in your =load-path=. Add the following to your .emacs:

(autoload 'powershell-mode "powershell-mode" "Mode PowerShell" t)
(push '("\\.ps[12]?$" . powershell-mode) auto-mode-alist)
You can’t perform that action at this time.