branch: elpa/smartparens commit 0a23136dd6b1f326419c5828f4197ecfd820b204 Merge: 8b6a3c3b31 3ebef29291 Author: Matus Goljer <matus.gol...@gmail.com> Commit: GitHub <nore...@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