Use ‘nxml-mode’ for ‘.proj’ and ‘.targets’ files
Both of these file types are used for MSBuild.
This commit is contained in:
parent
6642c7d717
commit
8121df576e
2 changed files with 27 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||
;; Keywords: local
|
||||
;; Version: 2020.0327.170006
|
||||
;; Version: 2020.0407.114436
|
||||
;; Package-Requires: (csharp-mode omnisharp oni-company oni-flycheck oni-yasnippet oni-hydra oni-fci smartparens)
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
@ -167,6 +167,12 @@ _cs_: Solution ^^ _mr_: Reload Solution
|
|||
;;;###autoload
|
||||
(add-to-list 'auto-mode-alist '("\\.xaml\\'" . nxml-mode))
|
||||
|
||||
;;;###autoload
|
||||
(add-to-list 'auto-mode-alist '("\\.targets\\'" . nxml-mode))
|
||||
|
||||
;;;###autoload
|
||||
(add-to-list 'auto-mode-alist '("\\.proj\\'". nxml-mode))
|
||||
|
||||
;;;###autoload
|
||||
(add-to-list 'auto-mode-alist '("\\.csproj\\'" . nxml-mode))
|
||||
|
||||
|
|
|
@ -29,3 +29,23 @@
|
|||
|
||||
[[ "$output" == *"nxml-mode" ]]
|
||||
}
|
||||
|
||||
@test "Opening a .proj fiile loads nxml-mode" {
|
||||
run emacs -batch -l package -f package-initialize \
|
||||
-visit test.proj \
|
||||
-eval "(prin1 major-mode)"
|
||||
|
||||
echo "$output"
|
||||
|
||||
[[ "$output" == *"nxml-mode" ]]
|
||||
}
|
||||
|
||||
@test "Opening a .targets file loads nxml-mode" {
|
||||
run emacs -batch -l package -f packaeg-initialize \
|
||||
-visit test.targets \
|
||||
-eval "(prin1 major-mode)"
|
||||
|
||||
echo "$output"
|
||||
|
||||
[[ "$output" == *"nxml-mode" ]]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue