Fix indentation in C# of first argument in function calls
This commit is contained in:
parent
183da25fd3
commit
226c1d86bd
1 changed files with 6 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; 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)
|
;; 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
|
;; 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))
|
(add-to-list 'yas-snippet-dirs oni-csharp-snippets-dir t))
|
||||||
(yas-load-directory oni-csharp-snippets-dir))
|
(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
|
(with-eval-after-load 'company
|
||||||
(add-to-list 'company-backends
|
(add-to-list 'company-backends
|
||||||
'(company-omnisharp :with company-yasnippet)))
|
'(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 'flycheck-mode)
|
||||||
(add-hook 'csharp-mode-hook 'omnisharp-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--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 'rainbow-delimiters-mode)
|
||||||
(add-hook 'csharp-mode-hook 'smartparens-mode)
|
(add-hook 'csharp-mode-hook 'smartparens-mode)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue