Enable omnisharp for csharp-mode
This commit is contained in:
parent
1dfbbdeded
commit
80970dfa47
1 changed files with 13 additions and 1 deletions
|
@ -4,7 +4,8 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 20190409014124
|
;; Version: 20190711082233
|
||||||
|
;; Package-Requires: (csharp-mode omnisharp oni-company oni-flycheck)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
;; it under the terms of the GNU General Public License as published by
|
;; it under the terms of the GNU General Public License as published by
|
||||||
|
@ -75,5 +76,16 @@
|
||||||
(overlay-put current-overlay 'oni-csharp--overlayp t)
|
(overlay-put current-overlay 'oni-csharp--overlayp t)
|
||||||
(overlay-put current-overlay 'evaporate t)))))
|
(overlay-put current-overlay 'evaporate t)))))
|
||||||
|
|
||||||
|
(with-eval-after-load 'company
|
||||||
|
(add-to-list 'company-backends 'company-omnisharp))
|
||||||
|
|
||||||
|
(add-hook 'csharp-mode-hook 'company-mode)
|
||||||
|
(add-hook 'csharp-mode-hook 'electric-indent-local-mode)
|
||||||
|
(add-hook 'csharp-mode-hook 'electric-pair-local-mode)
|
||||||
|
(add-hook 'csharp-mode-hook 'flycheck-mode)
|
||||||
|
(add-hook 'csharp-mode-hook 'omnisharp-mode)
|
||||||
|
|
||||||
|
;;;###autoload(with-eval-after-load 'csharp-mode (require 'oni-csharp))
|
||||||
|
|
||||||
(provide 'oni-csharp)
|
(provide 'oni-csharp)
|
||||||
;;; oni-csharp.el ends here
|
;;; oni-csharp.el ends here
|
||||||
|
|
Loading…
Reference in a new issue