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-03-25 22:59:32 -04:00
..
img
local/dos
config.el Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
packages.el Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
README.org Add missing prefixes to global application bindings 2020-07-06 23:13:52 +02:00

Windows Scripting layer

/TakeV/spacemacs/media/commit/d77e76e9f7098fdf80175e05acf28f4cde24d6dc/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 dos.el

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

Batch (dos.el)

Key binding Description
SPC m D ask for a command and display help
SPC m e b evaluate buffer
SPC m e B evaluate buffer with args
SPC m s insert separator &
SPC m t mini snippet to start a batch script
SPC m T big snippet to start a batch script
SPC m z toggle outline