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)

Auteur : Frédéric Perrin

Date : jeudi 23 décembre 2010, modifié le samedi 1 janvier 2011

Sauf mention contraire, les textes de ce site sont sous licence Creative Common BY-SA.

Ce site est produit avec des logiciels libres 100% élevés au grain et en plein air.