1
0
Fork 0

Fix indentation in C# of first argument in function calls

This commit is contained in:
Tom Willemse 2020-03-27 17:01:42 -07:00
parent 183da25fd3
commit 226c1d86bd

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; 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)