Fixes keybindings for gfm-mode
This commit is contained in:
parent
2ce65095ba
commit
be33df7dc8
|
@ -81,7 +81,10 @@ Will work on both org-mode and any mode that accepts plain html."
|
|||
("mx" . "markdown/text")))
|
||||
(spacemacs/declare-prefix-for-mode
|
||||
'markdown-mode (car prefix) (cdr prefix)))
|
||||
(spacemacs/set-leader-keys-for-major-mode 'markdown-mode
|
||||
;; note: `gfm-mode' is part of `markdown-mode.el' so we can define its key
|
||||
;; bindings here
|
||||
(dolist (mode '(markdown-mode gfm-mode))
|
||||
(spacemacs/set-leader-keys-for-major-mode mode
|
||||
;; Movement
|
||||
"{" 'markdown-backward-paragraph
|
||||
"}" 'markdown-forward-paragraph
|
||||
|
@ -138,7 +141,7 @@ Will work on both org-mode and any mode that accepts plain html."
|
|||
"N" 'markdown-next-link
|
||||
"f" 'markdown-follow-thing-at-point
|
||||
"P" 'markdown-previous-link
|
||||
"<RET>" 'markdown-jump)
|
||||
"<RET>" 'markdown-jump))
|
||||
(when (eq 'eww markdown-live-preview-engine)
|
||||
(spacemacs/set-leader-keys-for-major-mode 'markdown-mode
|
||||
"cP" 'markdown-live-preview-mode))
|
||||
|
|
Loading…
Reference in a new issue