NonGNU ELPA - powershell

powershell Atom Feed

Description
Mode for editing PowerShell scripts
Latest
powershell-0.4.tar (.sig), 2025-Nov-13, 70.0 KiB
Maintainer
Frédéric Perrin <fredericperrinreselfr>
Website
http://github.com/jschaf/powershell.el
Browse ELPA's repository
CGit or Gitweb
Badge

To install this package from Emacs, use package-install or list-packages.

Full description

PowerShell Mode

PowerShell Mode is an Emacs major mode for editing and running Microsoft PowerShell files.

Installation

With MELPA

First, add the package repository:

(add-to-list 'package-archives
             '("melpa" . "https://melpa.org/packages/") t)

Then install powershell.el:

M-x package-install RET powershell RET

You can also install the package use use-package:

(use-package powershell
    :ensure t)

El-Get

powershell.el is included in the El-Get repository

Install powershell.el:

M-x el-get-install RET powershell.el RET

Manually

Download powershell.el and place the download directory on your load-path like so:

(add-to-list 'load-path "~/.emacs.d/path/to/powershell")

eglot & LSP Support

powershell-mode has built in support for Language Server Protocol (LSP) via eglot.

To download the latest language-server and register it with eglot, simply invoke M-x powershell-install-langserver.

Doing this when a version is already installed will overwrite it with the latest version available.

History

I combined powershell.el and powershell-mode.el (last updated October 2012). I used the name powershell.el with the permission of the creator, Dino Chiesa. Since powershell.el was licensed with the new BSD license I combined the two files using the more restrictive license, the GPL. I also cleaned up the documentation and reorganized some of the code.