From b91a204fe66d67ed9bbe8fa327ed5307827a87e2 Mon Sep 17 00:00:00 2001 From: oreodave Date: Wed, 24 Jul 2019 02:13:55 +0100 Subject: +C# configuration and keybinds --- doom.d/config.org | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'doom.d/config.org') diff --git a/doom.d/config.org b/doom.d/config.org index 461929f..48bb97e 100644 --- a/doom.d/config.org +++ b/doom.d/config.org @@ -49,3 +49,25 @@ become my C one soon! (after! elcord (elcord-mode)) #+END_SRC +* Languages + +** C# +#+BEGIN_SRC emacs-lisp +(after! csharp-mode + (setq omnisharp-server-executable-path "~/bin/omnisharp/run") + (add-hook 'csharp-mode-hook '(lambda() (setq c-basic-offset 4))) ; Hook for csharp setting variables + + ; C# Keybinds + (map! + :map csharp-mode-map + :localleader + :desc "Format buffer" "=" 'omnisharp-code-format-entire-file + (:prefix "t" + :desc "Unit Test This" "t" 'omnisharp-unit-test-at-point + :desc "Unit Test Last" "l" 'omnisharp-unit-test-last + :desc "Unit Test All" "b" 'omnisharp-unit-test-buffer + ) + ) + ) +#+END_SRC + -- cgit v1.2.3-13-gbd6f