Created
July 28, 2015 21:37
-
-
Save mikavilpas/90f5df966af2fb28c6d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'prodigy) | |
;; omnisharp-emacs development hacks | |
(setenv "PATH" (concat (getenv "PATH") | |
":/home/mika/.cask/bin" | |
":/home/mika/bin/")) | |
(defmacro def-omnisharp-service (name command &optional args-to-command) | |
(let ((omni-dir "/home/mika/git/omnisharp-emacs/")) | |
`(prodigy-define-service | |
:name ,name | |
:args ,args-to-command | |
:command (concat ,omni-dir ,command) | |
:cwd ,omni-dir | |
:stop-signal 'kill | |
:kill-process-buffer-on-stop t | |
:truncate-output 200 | |
:tags '(omnisharp)))) | |
(def-omnisharp-service | |
"omnisharp-roslyn stdio" | |
"./omnisharp-roslyn/omnisharp" | |
'("-v" "-s" "test/MinimalSolution/" "--stdio")) | |
(def-omnisharp-service | |
"omnisharp-emacs integration tests" | |
"run-integration-tests.sh") | |
(def-omnisharp-service | |
"omnisharp-emacs unit tests" | |
"run-tests.sh") | |
(def-omnisharp-service | |
"omnisharp-emacs installation test" | |
"run-melpa-build-test.sh") | |
(add-to-list 'evil-emacs-state-modes 'prodigy-mode) | |
(provide 'prodigy-config) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment