From 34b78655c21a3b7902603c3a544f4a7fe469694d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 28 Jan 2020 22:15:41 -0800 Subject: Enable nxml-mode for .csproj files --- test/integration/oni-csharp.bats | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') diff --git a/test/integration/oni-csharp.bats b/test/integration/oni-csharp.bats index 241a335..bdfcbd0 100644 --- a/test/integration/oni-csharp.bats +++ b/test/integration/oni-csharp.bats @@ -19,3 +19,13 @@ [[ "$output" == *"nxml-mode" ]] } + +@test "Opening a .csproj file loads nxml-mode" { + run emacs -batch -l package -f package-initialize \ + -visit test.csproj \ + -eval "(prin1 major-mode)" + + echo "$output" + + [[ "$output" == *"nxml-mode" ]] +} -- cgit v1.2.3-54-g00ecf