From e7d56f2ce78e0268a2da9a0d5a9e6da350ec2669 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 23 Jul 2022 15:53:09 +0200 Subject: [PATCH] feat(markdown): add toggle keybinds under t Close: #6308 Co-authored-by: iyefrat --- modules/lang/markdown/config.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/lang/markdown/config.el b/modules/lang/markdown/config.el index 6543601bc..a88456db2 100644 --- a/modules/lang/markdown/config.el +++ b/modules/lang/markdown/config.el @@ -117,7 +117,16 @@ capture, the end position, and the output buffer.") :desc "New blockquote" "q" #'markdown-insert-blockquote :desc "Strike through" "s" #'markdown-insert-strike-through :desc "Table" "t" #'markdown-insert-table - :desc "Wiki link" "w" #'markdown-insert-wiki-link))) + :desc "Wiki link" "w" #'markdown-insert-wiki-link) + (:prefix ("t" . "toggle") + :desc "Inline LaTeX" "e" #'markdown-toggle-math + :desc "Code highlights" "f" #'markdown-toggle-fontify-code-blocks-natively + :desc "Inline images" "i" #'markdown-toggle-inline-images + :desc "URL hiding" "l" #'markdown-toggle-url-hiding + :desc "Markup hiding" "m" #'markdown-toggle-markup-hiding + :desc "Wiki links" "w" #'markdown-toggle-wiki-links + :desc "GFM checkbox" "x" #'markdown-toggle-gfm-checkbox))) + (use-package! evil-markdown :when (featurep! :editor evil +everywhere)