Skip to content

Commit c7519a1

Browse files
authored
Merge pull request #1216 from wyuenho/c-ts-modes
config for c-ts-mode and c++-ts-mode
2 parents ab475c7 + cf78df1 commit c7519a1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

smartparens-config.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ ID, ACTION, CONTEXT."
128128
;; automatically. If you want to call sp-local-pair outside this
129129
;; macro, you MUST supply the major mode argument.
130130

131-
(eval-after-load 'cc-mode '(require 'smartparens-c))
131+
(--each '(cc-mode c-ts-mode)
132+
(eval-after-load it '(require 'smartparens-c)))
132133
(--each '(clojure-mode clojure-ts-mode)
133134
(eval-after-load it '(require 'smartparens-clojure)))
134135
(eval-after-load 'coq-mode '(require 'smartparens-coq))

smartparens.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,8 @@ Symbol is defined as a chunk of text recognized by
612612
(defcustom sp-c-modes '(
613613
c-mode
614614
c++-mode
615+
c-ts-mode
616+
c++-ts-mode
615617
)
616618
"List of C-related modes."
617619
:type '(repeat symbol)

0 commit comments

Comments
 (0)