branch: externals/csharp-mode commit 9fa77ac7fe1a1477fc6ca5addf196bc67927498a Author: Theodor Thornhill <theodor.thornh...@frende.no> Commit: Theodor Thornhill <theodor.thornh...@frende.no>
Use 'c-default-style' instead of 'c-set-style' Also discussed in #117 and #118. Do this simple fix instead of introducing the complexities from the old version. --- csharp-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/csharp-mode.el b/csharp-mode.el index 8129749..2bff77a 100644 --- a/csharp-mode.el +++ b/csharp-mode.el @@ -634,12 +634,14 @@ Key bindings: \\{csharp-mode-map}" + (setq-local c-default-style + (cons '(csharp-mode . "csharp") + c-default-style)) :after-hook (c-update-modeline) (c-initialize-cc-mode t) (c-init-language-vars csharp-mode) (c-common-init 'csharp-mode) (easy-menu-add csharp-menu) - (c-set-style "csharp") (setq-local c-doc-comment-style '((csharp-mode . codedoc))) (c-run-mode-hooks 'c-mode-common-hook 'csharp-mode-hook))