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

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

[nongnu] elpa/smartparens 0a23136dd6 2/2: Merge pull request #1139 from


From: ELPA Syncer
Subject: [nongnu] elpa/smartparens 0a23136dd6 2/2: Merge pull request #1139 from ax487/feature-doxygen-formulas
Date: Sun, 27 Nov 2022 07:59:24 -0500 (EST)

branch: elpa/smartparens
commit 0a23136dd6b1f326419c5828f4197ecfd820b204
Merge: 8b6a3c3b31 3ebef29291
Author: Matus Goljer <matus.goljer@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #1139 from ax487/feature-doxygen-formulas
    
    Add pairs for doxygen formulas in C / C++
---
 smartparens-c.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/smartparens-c.el b/smartparens-c.el
index eeb96b5a3c..52a4fe72b4 100644
--- a/smartparens-c.el
+++ b/smartparens-c.el
@@ -48,5 +48,10 @@
   (sp-local-pair "/*" "*/" :post-handlers '(("| " "SPC")
                                             ("* ||\n[i]" "RET"))))
 
+;; inline formulas for doxygen
+(sp-with-modes sp-c-modes
+  (sp-local-pair "\\f[" "\\f]" :when '(sp-in-comment-p))
+  (sp-local-pair "\\f$" "\\f$" :when '(sp-in-comment-p)))
+
 (provide 'smartparens-c)
 ;;; smartparens-c.el ends here



reply via email to

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