Enable omnisharp keys more better
This commit is contained in:
parent
18a0dc261e
commit
166160c765
1 changed files with 11 additions and 3 deletions
|
|
@ -445,8 +445,7 @@
|
||||||
;; =================================================================
|
;; =================================================================
|
||||||
;; C#-Mode configuration.
|
;; C#-Mode configuration.
|
||||||
;; =================================================================
|
;; =================================================================
|
||||||
(use-package csharp-mode
|
(use-package csharp-mode :ensure t
|
||||||
:ensure t
|
|
||||||
|
|
||||||
:preface
|
:preface
|
||||||
(defun my-csharp-mode-hook ()
|
(defun my-csharp-mode-hook ()
|
||||||
|
|
@ -460,8 +459,17 @@
|
||||||
:mode "\\.cs\\'"
|
:mode "\\.cs\\'"
|
||||||
|
|
||||||
:config
|
:config
|
||||||
|
(use-package omnisharp :ensure t
|
||||||
|
:commands omnisharp-mode
|
||||||
|
:bind (:map omnisharp-mode-map
|
||||||
|
([remap xref-find-definitions] . omnisharp-go-to-definition)
|
||||||
|
([remap xref-find-references] . omnisharp-find-usages)
|
||||||
|
;; `xref-pop-marker-stack' works as expected.
|
||||||
|
)
|
||||||
|
:config
|
||||||
|
(eval-after-load 'company '(add-to-list 'company-backends 'company-omnisharp)))
|
||||||
|
|
||||||
(add-hook 'csharp-mode-hook 'my-csharp-mode-hook)
|
(add-hook 'csharp-mode-hook 'my-csharp-mode-hook)
|
||||||
(eval-after-load 'company '(add-to-list 'company-backends 'company-omnisharp))
|
|
||||||
(c-add-style "ms-csharp"
|
(c-add-style "ms-csharp"
|
||||||
'((c-basic-offset . 4)
|
'((c-basic-offset . 4)
|
||||||
(c-comment-only-line-offset . (0 . 0))
|
(c-comment-only-line-offset . (0 . 0))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue