1
0
Fork 0

Add auto-insert template for .proj files

This commit is contained in:
Tom Willemse 2020-08-27 22:31:28 -07:00
parent 99a4c23dab
commit 2e672668d9

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2020.0714.095918 ;; Version: 2020.0825.163721
;; Package-Requires: (csharp-mode oni-company oni-flycheck oni-yasnippet oni-hydra oni-fci oni-lsp smartparens) ;; Package-Requires: (csharp-mode oni-company oni-flycheck oni-yasnippet oni-hydra oni-fci oni-lsp smartparens)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -166,6 +166,11 @@ _cs_: Solution
;;;###autoload ;;;###autoload
(add-to-list 'auto-mode-alist '("\\.csproj\\'" . nxml-mode)) (add-to-list 'auto-mode-alist '("\\.csproj\\'" . nxml-mode))
(add-to-list 'auto-insert-alist
`(,(rx ".proj" string-end)
nil
"<Project xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\" ToolsVersion=\"4.0\">\n " _ "\n</Project>"))
;;;###autoload ;;;###autoload
(with-eval-after-load 'csharp-mode (with-eval-after-load 'csharp-mode
(with-eval-after-load 'yasnippet (with-eval-after-load 'yasnippet