branch: externals/csharp-mode commit 689dd8ba20b32ca5d35510822b9088b9a48b54a9 Author: Jesse Black <jesse.w.bl...@gmail.com> Commit: Jesse Black <jesse.w.bl...@gmail.com>
make c# style the default style --- csharp-mode.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/csharp-mode.el b/csharp-mode.el index a71d4bf..71ce8e7 100644 --- a/csharp-mode.el +++ b/csharp-mode.el @@ -4381,6 +4381,14 @@ Key bindings: ;; customized values for our language. (c-init-language-vars csharp-mode) + ;; Set style to c# style unless a file local variable or default + ;; style is found, in which case it should be set after + ;; calling `c-common-init' below. + (unless (or c-file-style + (stringp c-default-style) + (assq 'csharp-mode c-default-style)) + (c-set-style "c#" t)) + ;; `c-common-init' initializes most of the components of a CC Mode ;; buffer, including setup of the mode menu, font-lock, etc. ;; There's also a lower level routine `c-basic-common-init' that