[markdown] Use valign for table formating if available

This commit is contained in:
Maximilian Wolff 2021-01-02 19:39:11 +00:00
parent d545dcbdbe
commit 344b6a51f7

View file

@ -20,6 +20,7 @@
mmm-mode
org
smartparens
valign
(vmd-mode :toggle (eq 'vmd markdown-live-preview-engine))
))
@ -46,6 +47,9 @@
(spacemacs/set-leader-keys-for-major-mode mode
"cr" 'gh-md-render-buffer))))
(defun markdown/post-init-valign ()
(add-hook 'markdown-mode-hook 'valign-mode))
(defun markdown/post-init-smartparens ()
(add-hook 'markdown-mode-hook 'smartparens-mode))
@ -161,7 +165,7 @@
"gl" 'outline-next-visible-heading)
;; Promotion, Demotion
(add-hook 'spacemacs-editing-style-hook
'spacemacs//markdown-hjkl-promotion-demotion)
'spacemacs//markdown-hjkl-promotion-demotion)
(spacemacs//markdown-hjkl-promotion-demotion dotspacemacs-editing-style)
(define-key markdown-mode-map (kbd "M-<down>") 'markdown-move-down)
(define-key markdown-mode-map (kbd "M-<left>") 'markdown-promote)