1
0
Fork 0

Only add the auto-insert template when ‘autoinsert’ is loaded

This commit is contained in:
Tom Willemse 2020-09-07 15:11:27 -07:00
parent 4d0a1c884d
commit fad1018b1b

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
;; Version: 2020.0907.144202
;; Version: 2020.0907.151110
;; 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
@ -170,10 +170,11 @@ _cs_: Solution
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.csproj\\'" . nxml-mode))
(with-eval-after-load 'autoinsert
(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>"))
"<Project xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\" ToolsVersion=\"4.0\">\n " _ "\n</Project>")))
;;;###autoload
(with-eval-after-load 'csharp-mode