From 226c1d86bd3aeee6c07bdeee6facb3039841c3da Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 27 Mar 2020 17:01:42 -0700 Subject: [PATCH] Fix indentation in C# of first argument in function calls --- oni-csharp/oni-csharp.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/oni-csharp/oni-csharp.el b/oni-csharp/oni-csharp.el index 1d5d954..d22fb28 100644 --- a/oni-csharp/oni-csharp.el +++ b/oni-csharp/oni-csharp.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2020.0325.155305 +;; Version: 2020.0327.170006 ;; Package-Requires: (csharp-mode omnisharp oni-company oni-flycheck oni-yasnippet oni-hydra oni-fci smartparens) ;; This program is free software; you can redistribute it and/or modify @@ -142,6 +142,10 @@ _cs_: Solution ^^ _mr_: Reload Solution (add-to-list 'yas-snippet-dirs oni-csharp-snippets-dir t)) (yas-load-directory oni-csharp-snippets-dir)) +(defun oni-csharp--update-style () + "Set style rules according to personal (or recommended) preference." + (setf (alist-get 'arglist-intro c-offsets-alist) '+)) + (with-eval-after-load 'company (add-to-list 'company-backends '(company-omnisharp :with company-yasnippet))) @@ -152,6 +156,7 @@ _cs_: Solution ^^ _mr_: Reload Solution (add-hook 'csharp-mode-hook 'flycheck-mode) (add-hook 'csharp-mode-hook 'omnisharp-mode) (add-hook 'csharp-mode-hook 'oni-csharp--auto-fill-mode) +(add-hook 'csharp-mode-hook 'oni-csharp--update-style) (add-hook 'csharp-mode-hook 'rainbow-delimiters-mode) (add-hook 'csharp-mode-hook 'smartparens-mode)