From 831033fdedcb8f1e1ff7e73d44c782c026594c11 Mon Sep 17 00:00:00 2001 From: Adrien Date: Sun, 6 Feb 2022 20:17:35 +0100 Subject: [PATCH] Add python f"" and f'' pairs to smartparens config. --- lisp/utilities/smartparens.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/utilities/smartparens.el b/lisp/utilities/smartparens.el index 5198561..75fb10b 100644 --- a/lisp/utilities/smartparens.el +++ b/lisp/utilities/smartparens.el @@ -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" "**" "**")