Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion smartparens-config.el
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ ID, ACTION, CONTEXT."
(eval-after-load 'latex '(require 'smartparens-latex))
(eval-after-load 'lua-mode '(require 'smartparens-lua))
(eval-after-load 'lua-ts-mode '(require 'smartparens-lua))
(eval-after-load 'markdown-mode '(require 'smartparens-markdown))
(--each '(markdown-mode markdown-ts-mode)
(eval-after-load it '(require 'smartparens-markdown)))
(--each '(python-mode python-ts-mode python)
(eval-after-load it '(require 'smartparens-python)))
(eval-after-load 'org '(require 'smartparens-org))
Expand Down
4 changes: 2 additions & 2 deletions smartparens-markdown.el
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ This predicate is only tested on \"insert\" action."
(goto-char mb)
(save-match-data (looking-at "^\\* "))))

(sp-with-modes '(markdown-mode gfm-mode)
(sp-with-modes '(markdown-mode markdown-ts-mode gfm-mode)
(sp-local-pair "*" "*"
:unless '(sp--gfm-point-after-word-p sp-point-at-bol-p)
:post-handlers '(("[d1]" "SPC"))
:skip-match 'sp--gfm-skip-asterisk)
(sp-local-pair "**" "**")
(sp-local-pair "_" "_" :unless '(sp-point-after-word-p)))

(sp-with-modes 'markdown-mode
(sp-with-modes '(markdown-mode markdown-ts-mode)
(sp-local-pair "```" "```"))

(sp-with-modes 'gfm-mode
Expand Down