From cf78df174010b6926dddaae94f1aa471c7c1d138 Mon Sep 17 00:00:00 2001 From: Jimmy Yuen Ho Wong Date: Sat, 13 Jul 2024 01:43:16 +0100 Subject: [PATCH] config for c-ts-mode and c++-ts-mode --- smartparens-config.el | 3 ++- smartparens.el | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/smartparens-config.el b/smartparens-config.el index 80ab8202..981641f5 100644 --- a/smartparens-config.el +++ b/smartparens-config.el @@ -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)) diff --git a/smartparens.el b/smartparens.el index ba6eb648..7ea05734 100644 --- a/smartparens.el +++ b/smartparens.el @@ -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)