2015-12-02 14:23:39 +00:00
|
|
|
#+TITLE: Asciidoc layer
|
2015-07-31 02:17:42 +00:00
|
|
|
|
2019-05-07 08:21:07 +00:00
|
|
|
#+TAGS: dsl|layer|markup|programming
|
2019-05-05 17:26:40 +00:00
|
|
|
|
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-08-06 02:14:10 +00:00
|
|
|
- [[#features][Features:]]
|
2017-05-22 14:16:12 +00:00
|
|
|
- [[#install][Install]]
|
|
|
|
- [[#key-bindings][Key bindings]]
|
|
|
|
- [[#element-insertion][Element insertion]]
|
|
|
|
- [[#promotion-demotion][Promotion, Demotion]]
|
2015-07-31 02:17:42 +00:00
|
|
|
|
|
|
|
* Description
|
|
|
|
This layer adds [[https://asciidoctor.org][AsciiDoc]] markup language support to Spacemacs.
|
|
|
|
|
2017-08-06 02:14:10 +00:00
|
|
|
** Features:
|
2015-07-31 02:17:42 +00:00
|
|
|
- asciidoc format support via [[https://github.com/sensorflo/adoc-mode][adoc-mode]]
|
2016-01-09 20:52:40 +00:00
|
|
|
- =.adoc= files are associated with =adoc-mode= by default
|
2015-07-31 02:17:42 +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 =asciidoc= to the existing =dotspacemacs-configuration-layers= list in this
|
|
|
|
file.
|
2015-07-31 02:17:42 +00:00
|
|
|
|
|
|
|
* Key bindings
|
|
|
|
** Element insertion
|
|
|
|
|
2018-12-05 03:03:03 +00:00
|
|
|
| Key binding | Description |
|
2015-07-31 02:17:42 +00:00
|
|
|
|-------------+-----------------------------------------------|
|
|
|
|
| ~SPC m h 1~ | Insert title level 1 |
|
|
|
|
| ~SPC m h I~ | Insert title level 1 (the most important one) |
|
|
|
|
| ~SPC m h 2~ | Insert title level 2 |
|
|
|
|
| ~SPC m h i~ | Insert title level 2 (the most usual one) |
|
|
|
|
| ~SPC m h 3~ | Insert title level 3 |
|
|
|
|
| ~SPC m h 4~ | Insert title level 4 |
|
|
|
|
| ~SPC m h 5~ | Insert title level 5 |
|
|
|
|
| ~SPC m h 5~ | Insert title level 5 |
|
|
|
|
| ~SPC m x b~ | Boldface selected |
|
|
|
|
| ~SPC m x i~ | Italicize selected |
|
|
|
|
|
|
|
|
** Promotion, Demotion
|
|
|
|
|
2018-12-05 03:03:03 +00:00
|
|
|
| Key binding | Description |
|
2015-07-31 02:17:42 +00:00
|
|
|
|-------------+---------------------|
|
|
|
|
| ~M-h~ | Promote title level |
|
2016-04-25 10:13:59 +00:00
|
|
|
| ~M-l~ | Demote title level |
|