2015-06-10 16:44:30 +00:00
|
|
|
#+TITLE: Windows Scripting contribution layer for Spacemacs
|
|
|
|
|
|
|
|
[[file:img/ps.png]]
|
|
|
|
|
2015-10-30 11:20:58 +00:00
|
|
|
* Table of Contents :TOC_4_org:noexport:
|
|
|
|
- [[Description][Description]]
|
|
|
|
- [[Install][Install]]
|
|
|
|
- [[Key Bindings][Key Bindings]]
|
|
|
|
- [[Powershell][Powershell]]
|
|
|
|
- [[Batch (dos.el)][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.
|
|
|
|
|
|
|
|
Incuded packages for extensions:
|
|
|
|
- =.ps1=: [[https://github.com/jschaf/powershell.el][powershell]]
|
|
|
|
- =.bat=: [[http://www.emacswiki.org/emacs/dos.el][dos.el]]
|
|
|
|
|
|
|
|
* Install
|
|
|
|
To use this contribution add it to your =~/.spacemacs=
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
(setq-default dotspacemacs-configuration-layers '(windows-scripts))
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
* Key Bindings
|
|
|
|
** Powershell
|
|
|
|
No useful bindings.
|
|
|
|
|
|
|
|
** 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 |
|