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

Table des matières

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 (fred CHEZ resel POINT fr)

Date : 2015-06-06 sam 19:49

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

Certains des articles sont publiés sur Planet Libre, l'aggrégateur des blogs de la communauté francophone du Logiciel Libre.

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