spacemacs/layers/+lang/windows-scripts/README.org

44 lines
1.5 KiB
Org Mode
Raw Normal View History

#+TITLE: Windows Scripting layer
2015-06-10 16:44:30 +00:00
[[file:img/ps.png]]
2018-09-19 03:54:47 +00:00
* Table of Contents :TOC_4_gh:noexport:
2017-05-22 14:16:12 +00:00
- [[#description][Description]]
- [[#features][Features:]]
2017-05-22 14:16:12 +00:00
- [[#install][Install]]
- [[#key-bindings][Key bindings]]
- [[#powershell-powershellel][Powershell (powershell.el)]]
2017-05-22 14:16:12 +00:00
- [[#batch-dosel][Batch (dos.el)]]
2015-06-10 16:44:30 +00:00
* 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 [[https://github.com/jschaf/powershell.el][powershell.el]]
2018-05-15 13:19:01 +00:00
- Syntax highlighting of batch =.bat= files via [[https://www.emacswiki.org/emacs/DosMode][dos.el]]
2015-06-10 16:44:30 +00:00
* 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.
2015-06-10 16:44:30 +00:00
* Key bindings
** Powershell (powershell.el)
| Key binding | Description |
|-------------+----------------------------------|
| ~SPC m r r~ | Transform marked regexp to regex |
2015-06-10 16:44:30 +00:00
** Batch (dos.el)
| Key binding | Description |
2015-06-10 16:44:30 +00:00
|-------------+--------------------------------------|
| ~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 |