Only add the auto-insert template when ‘autoinsert’ is loaded
This commit is contained in:
parent
4d0a1c884d
commit
fad1018b1b
1 changed files with 6 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; 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)
|
;; 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
|
||||||
|
@ -170,10 +170,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
|
(with-eval-after-load 'autoinsert
|
||||||
|
(add-to-list 'auto-insert-alist
|
||||||
`(,(rx ".proj" string-end)
|
`(,(rx ".proj" string-end)
|
||||||
nil
|
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
|
;;;###autoload
|
||||||
(with-eval-after-load 'csharp-mode
|
(with-eval-after-load 'csharp-mode
|
||||||
|
|
Loading…
Reference in a new issue