From 3d99ae8562e0a61eeb5a938fb13d7dded5780f66 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 19 Feb 2019 01:28:07 -0500 Subject: [PATCH] lang/csharp: include +chsarp-sp-point-in-type-p --- modules/lang/csharp/autoload.el | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modules/lang/csharp/autoload.el diff --git a/modules/lang/csharp/autoload.el b/modules/lang/csharp/autoload.el new file mode 100644 index 000000000..0cdedf0bd --- /dev/null +++ b/modules/lang/csharp/autoload.el @@ -0,0 +1,10 @@ +;;; lang/csharp/autoload.el -*- lexical-binding: t; -*- + +;;;###autoload +(defun +csharp-sp-point-in-type-p (id action context) + "Return t if point is in the right place for C# angle-brackets." + (and (sp-in-code-p id action context) + (cond ((eq action 'insert) + (sp-point-after-word-p id action context)) + ((eq action 'autoskip) + (/= (char-before) 32)))))