aboutsummaryrefslogtreecommitdiff
path: root/doom.d/config.org
diff options
context:
space:
mode:
Diffstat (limited to 'doom.d/config.org')
-rw-r--r--doom.d/config.org22
1 files changed, 22 insertions, 0 deletions
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
+