Add binding for markdown GFM code blocks

Also declare prefixes for markdown keys
This commit is contained in:
Sebastian Wiesner 2015-10-21 14:36:00 +02:00 committed by syl20bnr
parent 2b038b2046
commit b8846361ad
1 changed files with 10 additions and 0 deletions

View File

@ -53,6 +53,15 @@ Will work on both org-mode and any mode that accepts plain html."
(format tag (help-key-description key nil)))
(insert (format tag ""))
(forward-char -6))))
;; Declare prefixes and bind keys
(dolist (prefix '(("mc" . "markdown/command")
("mh" . "markdown/header")
("mi" . "markdown/insert")
("ml" . "markdown/lists")
("mx" . "markdown/text")))
(spacemacs/declare-prefix-for-mode
'markdown-mode (car prefix) (cdr prefix)))
(evil-leader/set-key-for-mode 'markdown-mode
;; Movement
"m{" 'markdown-backward-paragraph
@ -101,6 +110,7 @@ Will work on both org-mode and any mode that accepts plain html."
"mxb" 'markdown-insert-bold
"mxi" 'markdown-insert-italic
"mxc" 'markdown-insert-code
"mxC" 'markdown-insert-gfm-code-block
"mxq" 'markdown-insert-blockquote
"mxQ" 'markdown-blockquote-region
"mxp" 'markdown-insert-pre