From a08431893218cd28b83d939d44b5802c2e0e2d8e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 21 Feb 2020 00:39:06 -0500 Subject: [PATCH] Prevent backtick auto-pairing before word/same --- modules/lang/markdown/config.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/lang/markdown/config.el b/modules/lang/markdown/config.el index 3ab052322..f549cee33 100644 --- a/modules/lang/markdown/config.el +++ b/modules/lang/markdown/config.el @@ -50,6 +50,9 @@ capture, the end position, and the output buffer.") ;; buffer. No good way to tell, so pretend it's async. :file '(markdown-follow-thing-at-point :async t)) + (sp-local-pair '(markdown-mode gfm-mode) "`" "`" + :unless '(:add sp-point-before-word-p sp-point-before-same-p)) + (setq-hook! 'markdown-mode-hook fill-nobreak-predicate (cons #'markdown-code-block-at-point-p fill-nobreak-predicate))