This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+lang/windows-scripts
2021-04-15 22:59:10 +02:00
..
img
config.el
funcs.el fixup! windows-scripts: replaced dos.el with bat-mode, added bmx-mode 2021-04-15 22:59:10 +02:00
packages.el fixup! windows-scripts: replaced dos.el with bat-mode, added bmx-mode 2021-04-15 22:59:10 +02:00
README.org

Windows Scripting layer

/TakeV/spacemacs/media/commit/7b5b69fda5c889cb2edf732e2d93cffd03bbdb98/layers/+lang/windows-scripts/img/ps.png

Description

This simple layer adds support for the Powershell scripting language as well as support for batch files.

Features:

  • Syntax highlighting of powershell .ps1 files via powershell.el
  • Syntax highlighting of batch .bat files via bat-mode
  • Auto-completion, code-navigation and refactoring capabilities of batch files via bmx-mode

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add windows-scripts to the existing dotspacemacs-configuration-layers list in this file.

Key bindings

Powershell (powershell.el)

Key binding Description
SPC m r r Transform marked regexp to regex
SPC a t s p Start powershell shell

Bat-mode

Key binding Description
SPC m e b evaluate buffer
SPC m e B evaluate buffer with args
SPC m h h show help of command
SPC m i t insert minimal template
SPC m z toggle outline
SPC m g d jump to definition
SPC m g r find references
SPC m r r rename symbol
SPC m r f ensure all symbols has consistent casing/syntax