Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.04 KB

File metadata and controls

27 lines (19 loc) · 1.04 KB

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)