Skip to content

Commit

Permalink
Merge pull request Fuco1#1216 from wyuenho/c-ts-modes
Browse files Browse the repository at this point in the history
config for c-ts-mode and c++-ts-mode
  • Loading branch information
Fuco1 authored Jul 13, 2024
2 parents ab475c7 + cf78df1 commit c7519a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion smartparens-config.el
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ ID, ACTION, CONTEXT."
;; automatically. If you want to call sp-local-pair outside this
;; macro, you MUST supply the major mode argument.

(eval-after-load 'cc-mode '(require 'smartparens-c))
(--each '(cc-mode c-ts-mode)
(eval-after-load it '(require 'smartparens-c)))
(--each '(clojure-mode clojure-ts-mode)
(eval-after-load it '(require 'smartparens-clojure)))
(eval-after-load 'coq-mode '(require 'smartparens-coq))
Expand Down
2 changes: 2 additions & 0 deletions smartparens.el
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,8 @@ Symbol is defined as a chunk of text recognized by
(defcustom sp-c-modes '(
c-mode
c++-mode
c-ts-mode
c++-ts-mode
)
"List of C-related modes."
:type '(repeat symbol)
Expand Down

0 comments on commit c7519a1

Please sign in to comment.