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

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

[elpa] externals/csharp-mode 9fa77ac 336/459: Use 'c-default-style' inst


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 9fa77ac 336/459: Use 'c-default-style' instead of 'c-set-style'
Date: Sun, 22 Aug 2021 13:59:56 -0400 (EDT)

branch: externals/csharp-mode
commit 9fa77ac7fe1a1477fc6ca5addf196bc67927498a
Author: Theodor Thornhill <theodor.thornhill@frende.no>
Commit: Theodor Thornhill <theodor.thornhill@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))
 



reply via email to

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