Created
November 5, 2020 21:08
-
-
Save xevrem/0b3b3673fa5648fb3ab2bbcbb593949e to your computer and use it in GitHub Desktop.
configuring csharp for emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (use-package csharp-mode | |
| :hook | |
| (csharp-mode . rainbow-delimiters-mode) | |
| ) | |
| (use-package omnisharp | |
| :after csharp-mode | |
| :commands omnisharp-install-server | |
| :hook | |
| (csharp-mode . company-mode) | |
| (csharp-mode . flycheck-mode) | |
| :config | |
| (setq indent-tabs-mode nil | |
| c-syntactic-indentation t | |
| c-basic-offset 2 | |
| tab-width 2 | |
| evil-shift-width 2) | |
| (custo/local-leader-key | |
| "o" '(:ignore o :which-key "omnisharp") | |
| "o r" '(omnisharp-run-code-action-refactoring :which-key "omnisharp refactor") | |
| "o b" '(recompile :which-key "omnisharp build/recompile") | |
| ) | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment