2015-12-02 14:23:39 +00:00
|
|
|
#+TITLE: Windows Scripting layer
|
2015-06-10 16:44:30 +00:00
|
|
|
|
2019-05-07 08:21:07 +00:00
|
|
|
#+TAGS: dsl|layer|programming|script
|
2019-05-05 17:26:40 +00:00
|
|
|
|
2015-06-10 16:44:30 +00:00
|
|
|
[[file:img/ps.png]]
|
|
|
|
|
2019-05-07 20:05:06 +00:00
|
|
|
* Table of Contents :TOC_5_gh:noexport:
|
2017-05-22 14:16:12 +00:00
|
|
|
- [[#description][Description]]
|
2017-10-01 13:06:53 +00:00
|
|
|
- [[#features][Features:]]
|
2017-05-22 14:16:12 +00:00
|
|
|
- [[#install][Install]]
|
2018-12-05 03:03:03 +00:00
|
|
|
- [[#key-bindings][Key bindings]]
|
2017-10-01 13:06:53 +00:00
|
|
|
- [[#powershell-powershellel][Powershell (powershell.el)]]
|
2021-04-09 20:18:42 +00:00
|
|
|
- [[#bat-mode][Bat-mode]]
|
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.
|
|
|
|
|
2017-10-01 13:06:53 +00:00
|
|
|
** Features:
|
|
|
|
- Syntax highlighting of powershell =.ps1= files via [[https://github.com/jschaf/powershell.el][powershell.el]]
|
2021-03-19 03:44:21 +00:00
|
|
|
- Syntax highlighting of batch =.bat= files via [[https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/progmodes/bat-mode.el][bat-mode]]
|
|
|
|
- Auto-completion, code-navigation and refactoring capabilities of batch files via [[https://github.com/josteink/bmx-mode][bmx-mode]]
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
* Install
|
2016-01-06 05:21:55 +00:00
|
|
|
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
|
|
|
|
2018-12-05 03:03:03 +00:00
|
|
|
* Key bindings
|
2017-10-01 13:06:53 +00:00
|
|
|
** Powershell (powershell.el)
|
|
|
|
|
2020-07-06 21:13:52 +00:00
|
|
|
| Key binding | Description |
|
|
|
|
|---------------+----------------------------------|
|
|
|
|
| ~SPC m r r~ | Transform marked regexp to regex |
|
|
|
|
| ~SPC a t s p~ | Start powershell shell |
|
2021-04-09 20:18:42 +00:00
|
|
|
|
|
|
|
** 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 |
|