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)