Add python f"" and f'' pairs to smartparens config.

This commit is contained in:
2022-02-06 20:17:35 +01:00
parent 569919fa26
commit 831033fded

View File

@@ -118,6 +118,10 @@
(sp-with-modes '(sh-mode markdown-mode gfm-mode rts-mode python-mode cython-mode)
(sp-local-pair "`" nil :unless '(sp-point-before-word-p sp-point-after-word-p sp-point-before-same-p)))
(sp-with-modes '(python-mode)
(sp-local-pair "f\"" "\"")
(sp-local-pair "f'" "'"))
(sp-with-modes '(markdown-mode gfm-mode rst-mode)
(sp-local-pair "*" "*" :wrap "C-*" :skip-match 'user--sp-gfm-skip-asterisk)
(sp-local-tag "2" "**" "**")