v0.2.0 bump; better c# support
This commit is contained in:
parent
cda8cde02d
commit
86fd2b48c0
2 changed files with 31 additions and 8 deletions
6
init.el
6
init.el
|
@ -2,7 +2,7 @@
|
|||
;;
|
||||
;; Author: Henrik Lissner <henrik@lissner.net>
|
||||
;; URL: https://github.com/hlissner/emacs.d
|
||||
;; Version: 0.1.0
|
||||
;; Version: 0.2.0
|
||||
;;
|
||||
;;; Are you pondering what I'm pondering, Pinky?
|
||||
;;
|
||||
|
@ -75,10 +75,10 @@
|
|||
|
||||
module-cc ; c/c++/obj-c madness
|
||||
;; 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-elisp ; drowning in parentheses
|
||||
module-eshell ; eshell (on windows)
|
||||
;; module-eshell ; eshell (on windows)
|
||||
module-go ; a hipster dialect
|
||||
module-java ; the poster child for carpal tunnel syndome
|
||||
module-js ; alert("not java, javascript!")
|
||||
|
|
|
@ -7,20 +7,43 @@
|
|||
|
||||
(use-package omnisharp
|
||||
:after csharp-mode
|
||||
:init (add-hook! csharp-mode 'omnisharp-mode)
|
||||
:init (add-hook! csharp-mode '(emr-initialize omnisharp-mode))
|
||||
:config
|
||||
(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)
|
||||
|
||||
(bind! :map omnisharp-mode-map
|
||||
:n "gd" 'omnisharp-go-to-definition
|
||||
:n "\\u" 'omnisharp-find-usages
|
||||
:n "\\i" 'omnisharp-find-implementations)
|
||||
(:prefix ","
|
||||
:n "tr" (λ (omnisharp-unit-test "fixture"))
|
||||
:n "ts" (λ (omnisharp-unit-test "single"))
|
||||
:n "ta" (λ (omnisharp-unit-test "all"))))
|
||||
|
||||
(after! company
|
||||
(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
|
||||
(use-package shaderlab-mode :mode "\\.shader$")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue