branch: externals/csharp-mode commit 85ae15d83bf6ffc26fc6d82031aa556ef64bec29 Author: Jostein Kjønigsen <jost...@kjonigsen.net> Commit: Jostein Kjønigsen <jost...@kjonigsen.net>
Hacky formatting trick to make codedoc work with Omnisharp defaults This addresses https://github.com/josteink/csharp-mode/issues/116. --- csharp-mode.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/csharp-mode.el b/csharp-mode.el index 5d97466..04c49ec 100644 --- a/csharp-mode.el +++ b/csharp-mode.el @@ -2283,7 +2283,7 @@ your `csharp-mode-hook' function: ;; contains only an open-curly. In this case, insert a ;; summary element pair. (preceding-line-is-empty - (setq text-to-insert "/ <summary>\n/// \n/// </summary>" + (setq text-to-insert "/ <summary>\n /// \n /// </summary>" flavor 1) ) ;; The preceding word closed a summary element. In this case, @@ -2291,13 +2291,13 @@ your `csharp-mode-hook' function: ;; insert a remarks element. ((and (string-equal word-back "summary") (eq char0 ?/) (eq char1 ?<)) (if (not (and (string-equal word-fore "remarks") (eq char-0 ?<))) - (setq text-to-insert "/ <remarks>\n/// <para>\n/// \n/// </para>\n/// </remarks>" + (setq text-to-insert "/ <remarks>\n /// <para>\n /// \n /// </para>\n /// </remarks>" flavor 2))) ;; The preceding word closed the remarks section. In this case, ;; insert an example element. ((and (string-equal word-back "remarks") (eq char0 ?/) (eq char1 ?<)) - (setq text-to-insert "/ <example>\n/// \n/// </example>" + (setq text-to-insert "/ <example>\n /// \n /// </example>" flavor 3)) ;; The preceding word closed the example section. In this @@ -2339,7 +2339,7 @@ your `csharp-mode-hook' function: (if (string-equal word-back "remarks") (setq spacer (concat spacer " "))) - (setq text-to-insert (format "/%s<para>\n///%s \n///%s</para>" + (setq text-to-insert (format "/%s<para>\n ///%s \n ///%s</para>" spacer spacer spacer) flavor 6)))