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

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

[nongnu] elpa/smartparens 3ebef29291 1/2: Add pairs for doxygen formulas


From: ELPA Syncer
Subject: [nongnu] elpa/smartparens 3ebef29291 1/2: Add pairs for doxygen formulas in C / C++
Date: Sun, 27 Nov 2022 07:59:23 -0500 (EST)

branch: elpa/smartparens
commit 3ebef292916a71fb8030f1c4485fe69a095dc3ba
Author: ax487 <ax487@gmx.de>
Commit: ax487 <ax487@gmx.de>

    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]