spacemacs/layers/+lang/windows-scripts
Arif Er 00f9ab19ac chore: update copyright headers to 2022
The script used to identify and update the change is added into the GitHub
workflows script directory. A workflow action can be created to trigger the
script to update the headers on the first of every new year. Possibly a task for
a consequent PR.
2022-06-03 17:32:20 +02:00
..
img Use + instead of ! for layer categories 2015-09-11 00:13:51 -04:00
README.org [windows-scripts] Add missing keybinding to docs 2021-04-09 20:18:42 +00:00
config.el chore: update copyright headers to 2022 2022-06-03 17:32:20 +02:00
funcs.el chore: update copyright headers to 2022 2022-06-03 17:32:20 +02:00
packages.el chore: update copyright headers to 2022 2022-06-03 17:32:20 +02:00

README.org

Windows Scripting layer

/TakeV/spacemacs/media/branch/develop/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