Skip to content

Instantly share code, notes, and snippets.

@xevrem
Created November 5, 2020 21:08
Show Gist options
  • Select an option

  • Save xevrem/0b3b3673fa5648fb3ab2bbcbb593949e to your computer and use it in GitHub Desktop.

Select an option

Save xevrem/0b3b3673fa5648fb3ab2bbcbb593949e to your computer and use it in GitHub Desktop.
configuring csharp for emacs
(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