Prevent backtick auto-pairing before word/same

This commit is contained in:
Henrik Lissner
2020-02-21 00:39:06 -05:00
parent 6d2c82db34
commit a084318932

View File

@ -50,6 +50,9 @@ capture, the end position, and the output buffer.")
;; buffer. No good way to tell, so pretend it's async. ;; buffer. No good way to tell, so pretend it's async.
:file '(markdown-follow-thing-at-point :async t)) :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 (setq-hook! 'markdown-mode-hook
fill-nobreak-predicate (cons #'markdown-code-block-at-point-p fill-nobreak-predicate (cons #'markdown-code-block-at-point-p
fill-nobreak-predicate)) fill-nobreak-predicate))