2019-11-23 10:43:56 +00:00
|
|
|
;;; packages.el --- C# Layer packages File for Spacemacs
|
2015-01-28 20:12:25 +00:00
|
|
|
;;
|
2020-09-16 21:34:40 +00:00
|
|
|
;; Copyright (c) 2012-2020 Sylvain Benner & Contributors
|
2015-01-28 20:12:25 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
2015-04-19 03:40:24 +00:00
|
|
|
(setq csharp-packages
|
2018-11-20 19:55:37 +00:00
|
|
|
'(
|
|
|
|
company
|
|
|
|
csharp-mode
|
|
|
|
evil-matchit
|
|
|
|
ggtags
|
|
|
|
counsel-gtags
|
|
|
|
helm-gtags
|
|
|
|
omnisharp
|
|
|
|
flycheck
|
|
|
|
))
|
2015-01-28 20:12:25 +00:00
|
|
|
|
|
|
|
(defun csharp/init-omnisharp ()
|
|
|
|
(use-package omnisharp
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2015-08-12 19:17:59 +00:00
|
|
|
:init
|
2019-11-23 10:43:56 +00:00
|
|
|
(spacemacs//csharp-setup-backend)
|
2015-08-18 19:49:22 +00:00
|
|
|
:config
|
2019-11-23 10:43:56 +00:00
|
|
|
(spacemacs//csharp-configure)
|
|
|
|
))
|
2015-04-03 21:12:56 +00:00
|
|
|
|
2016-05-30 02:39:21 +00:00
|
|
|
(defun csharp/post-init-company ()
|
2019-11-23 10:43:56 +00:00
|
|
|
(spacemacs//csharp-setup-company))
|
2016-06-04 02:15:25 +00:00
|
|
|
|
2016-08-13 13:43:37 +00:00
|
|
|
(defun csharp/init-csharp-mode ()
|
|
|
|
(use-package csharp-mode
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t))
|
2016-08-13 13:43:37 +00:00
|
|
|
|
2016-06-04 02:15:25 +00:00
|
|
|
(defun csharp/post-init-evil-matchit ()
|
|
|
|
(with-eval-after-load 'evil-matchit
|
2017-01-02 05:39:04 +00:00
|
|
|
(plist-put evilmi-plugins 'csharp-mode
|
|
|
|
'((evilmi-simple-get-tag evilmi-simple-jump)
|
|
|
|
(evilmi-c-get-tag evilmi-c-jump))))
|
2016-06-04 02:15:25 +00:00
|
|
|
(add-hook 'csharp-mode-hook 'turn-on-evil-matchit-mode))
|
2016-04-05 04:08:34 +00:00
|
|
|
|
2017-04-10 03:03:07 +00:00
|
|
|
(defun csharp/post-init-flycheck ()
|
|
|
|
(spacemacs/enable-flycheck 'csharp-mode))
|
|
|
|
|
2016-04-05 04:08:34 +00:00
|
|
|
(defun csharp/post-init-ggtags ()
|
2016-08-15 19:24:44 +00:00
|
|
|
(add-hook 'csharp-mode-local-vars-hook #'spacemacs/ggtags-mode-enable))
|
2016-04-05 04:08:34 +00:00
|
|
|
|
2017-08-26 21:18:09 +00:00
|
|
|
(defun csharp/post-init-counsel-gtags ()
|
|
|
|
(spacemacs/counsel-gtags-define-keys-for-mode 'csharp-mode))
|
|
|
|
|
2016-04-05 04:08:34 +00:00
|
|
|
(defun csharp/post-init-helm-gtags ()
|
|
|
|
(spacemacs/helm-gtags-define-keys-for-mode 'csharp-mode))
|