branch: elpa/smartparens commit 3ebef292916a71fb8030f1c4485fe69a095dc3ba Author: ax487 <ax...@gmx.de> Commit: ax487 <ax...@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