powershell-mode – A simple mode for editing Powershell code in Emacs.
1. 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
.
2. 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)