markdown: add SPC m i t key binding to instert toc

This commit is contained in:
syl20bnr 2017-02-09 16:48:56 -05:00
parent eef1a87e98
commit cbab7cac59
2 changed files with 4 additions and 1 deletions

View File

@ -93,6 +93,7 @@ To generate a table of contents type on top of the buffer:
| ~SPC m i w~ | insert wiki link |
| ~SPC m i i~ | insert image |
| ~SPC m i I~ | insert reference image |
| ~SPC m i t~ | insert Table of Contents (toc) |
| ~SPC m x b~ | make region bold or insert bold |
| ~SPC m x i~ | make region italic or insert italic |
| ~SPC m x c~ | make region code or insert code |

View File

@ -157,7 +157,9 @@ Will work on both org-mode and any mode that accepts plain html."
(defun markdown/init-markdown-toc ()
(use-package markdown-toc
:defer t))
:defer t
:init (spacemacs/set-leader-keys-for-major-mode 'markdown-mode
"it" 'markdown-toc-generate-toc)))
(defun markdown/init-mmm-mode ()
(use-package mmm-mode