lang/csharp: add +unity flag
And group shader-mode & +csharp-unity-mode under it.
This commit is contained in:
parent
d87fba7944
commit
937252af4e
2 changed files with 11 additions and 5 deletions
|
@ -1,9 +1,5 @@
|
||||||
;;; lang/csharp/config.el -*- lexical-binding: t; -*-
|
;;; lang/csharp/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; `shader-mode' --- unity shaders
|
|
||||||
(add-to-list 'auto-mode-alist '("\\.shader$" . shader-mode))
|
|
||||||
|
|
||||||
|
|
||||||
(def-package! omnisharp
|
(def-package! omnisharp
|
||||||
:hook (csharp-mode . omnisharp-mode)
|
:hook (csharp-mode . omnisharp-mode)
|
||||||
:commands omnisharp-install-server
|
:commands omnisharp-install-server
|
||||||
|
@ -51,3 +47,12 @@
|
||||||
"r" (λ! (omnisharp-unit-test "fixture"))
|
"r" (λ! (omnisharp-unit-test "fixture"))
|
||||||
"s" (λ! (omnisharp-unit-test "single"))
|
"s" (λ! (omnisharp-unit-test "single"))
|
||||||
"a" (λ! (omnisharp-unit-test "all")))))
|
"a" (λ! (omnisharp-unit-test "all")))))
|
||||||
|
|
||||||
|
|
||||||
|
(when (featurep! +unity)
|
||||||
|
;; `shader-mode' --- unity shaders
|
||||||
|
(add-to-list 'auto-mode-alist '("\\.shader$" . shader-mode))
|
||||||
|
|
||||||
|
(def-project-mode! +csharp-unity-mode
|
||||||
|
:modes (csharp-mode shader-mode)
|
||||||
|
:files (and "Assets" "Library/MonoManager.asset" "Library/ScriptMapper")))
|
||||||
|
|
|
@ -3,5 +3,6 @@
|
||||||
|
|
||||||
(package! csharp-mode)
|
(package! csharp-mode)
|
||||||
(package! omnisharp)
|
(package! omnisharp)
|
||||||
(package! shader-mode)
|
|
||||||
|
|
||||||
|
(when (featurep! +unity)
|
||||||
|
(package! shader-mode))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue