v0.2.0 bump; better c# support

This commit is contained in:
Henrik Lissner 2015-10-01 13:49:36 -04:00
parent cda8cde02d
commit 86fd2b48c0
2 changed files with 31 additions and 8 deletions

View file

@ -2,7 +2,7 @@
;; ;;
;; Author: Henrik Lissner <henrik@lissner.net> ;; Author: Henrik Lissner <henrik@lissner.net>
;; URL: https://github.com/hlissner/emacs.d ;; URL: https://github.com/hlissner/emacs.d
;; Version: 0.1.0 ;; Version: 0.2.0
;; ;;
;;; Are you pondering what I'm pondering, Pinky? ;;; Are you pondering what I'm pondering, Pinky?
;; ;;
@ -75,10 +75,10 @@
module-cc ; c/c++/obj-c madness module-cc ; c/c++/obj-c madness
;; module-crystal ; ruby at the speed of c ;; module-crystal ; ruby at the speed of c
;; module-csharp ; unity, mono and xamarin module-csharp ; unity, .NET, and mono shenanigans
module-data ; dbs 'n data formats module-data ; dbs 'n data formats
module-elisp ; drowning in parentheses module-elisp ; drowning in parentheses
module-eshell ; eshell (on windows) ;; module-eshell ; eshell (on windows)
module-go ; a hipster dialect module-go ; a hipster dialect
module-java ; the poster child for carpal tunnel syndome module-java ; the poster child for carpal tunnel syndome
module-js ; alert("not java, javascript!") module-js ; alert("not java, javascript!")

View file

@ -7,20 +7,43 @@
(use-package omnisharp (use-package omnisharp
:after csharp-mode :after csharp-mode
:init (add-hook! csharp-mode 'omnisharp-mode) :init (add-hook! csharp-mode '(emr-initialize omnisharp-mode))
:config :config
(setq omnisharp-server-executable-path (setq omnisharp-server-executable-path
"~/Dropbox/lib/Omnisharp/server/OmniSharp/bin/Debug/OmniSharp.exe" "~/Dropbox/lib/omnisharp-server/OmniSharp/bin/Debug/OmniSharp.exe"
omnisharp-auto-complete-want-documentation nil) omnisharp-auto-complete-want-documentation nil)
(bind! :map omnisharp-mode-map (bind! :map omnisharp-mode-map
:n "gd" 'omnisharp-go-to-definition :n "gd" 'omnisharp-go-to-definition
:n "\\u" 'omnisharp-find-usages (:prefix ","
:n "\\i" 'omnisharp-find-implementations) :n "tr" (λ (omnisharp-unit-test "fixture"))
:n "ts" (λ (omnisharp-unit-test "single"))
:n "ta" (λ (omnisharp-unit-test "all"))))
(after! company (after! company
(add-company-backend! csharp-mode (omnisharp)) (add-company-backend! csharp-mode (omnisharp))
(add-hook! csharp-mode 'turn-on-eldoc-mode))) (add-hook! csharp-mode 'turn-on-eldoc-mode))
(mapc (lambda (x)
(let ((command-name (car x))
(title (cadr x)))
(emr-declare-command (intern (format "omnisharp-%s" (symbol-name command-name)))
:title title :modes 'omnisharp-mode)))
'((find-usages "find usages")
(find-implementations "find implementations")
(fix-code-issue-at-point "fix code issue at point")
(fix-usings "fix usings")
(rename "rename")
(current-type-information "current type information")
(current-type-documentation "current type documentation")
(navigate-to-current-file-member "navigate to current file member")
(navigate-to-solution-member "navigate to solution member")
(navigate-to-solution-file-then-file-member "navigate to solution file then member")
(navigate-to-solution-file "navigate to solution file")
(navigate-to-region "navigate to region")
(show-last-auto-complete-result "last auto complete result")
(show-overloads-at-point "show overloads at point")
(recompile "recompile"))))
;; unity shaders ;; unity shaders
(use-package shaderlab-mode :mode "\\.shader$") (use-package shaderlab-mode :mode "\\.shader$")