emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/csharp-mode 689dd8b 056/459: make c# style the default


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 689dd8b 056/459: make c# style the default style
Date: Sun, 22 Aug 2021 13:58:55 -0400 (EDT)

branch: externals/csharp-mode
commit 689dd8ba20b32ca5d35510822b9088b9a48b54a9
Author: Jesse Black <jesse.w.black@gmail.com>
Commit: Jesse Black <jesse.w.black@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]