From 2e672668d93c42d4d622930ca2fd6a7783aa7097 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 27 Aug 2020 22:31:28 -0700 Subject: Add auto-insert template for .proj files --- oni-csharp/oni-csharp.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'oni-csharp') diff --git a/oni-csharp/oni-csharp.el b/oni-csharp/oni-csharp.el index 44884ff..b15e163 100644 --- a/oni-csharp/oni-csharp.el +++ b/oni-csharp/oni-csharp.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; 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) ;; This program is free software; you can redistribute it and/or modify @@ -166,6 +166,11 @@ _cs_: Solution ;;;###autoload (add-to-list 'auto-mode-alist '("\\.csproj\\'" . nxml-mode)) +(add-to-list 'auto-insert-alist + `(,(rx ".proj" string-end) + nil + "\n " _ "\n")) + ;;;###autoload (with-eval-after-load 'csharp-mode (with-eval-after-load 'yasnippet -- cgit v1.2.3-54-g00ecf