emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/smartparens cf78df1740 1/2: config for c-ts-mode and c++-t


From: ELPA Syncer
Subject: [nongnu] elpa/smartparens cf78df1740 1/2: config for c-ts-mode and c++-ts-mode
Date: Sat, 13 Jul 2024 07:00:54 -0400 (EDT)

branch: elpa/smartparens
commit cf78df174010b6926dddaae94f1aa471c7c1d138
Author: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
Commit: Jimmy Yuen Ho Wong <wyuenho@gmail.com>

    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 80ab8202ae..981641f5bf 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 ba6eb64858..7ea05734b4 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]