2019-02-19 01:28:07 -05:00
|
|
|
;;; 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)))))
|
2020-03-27 01:25:30 -04:00
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
(defun +csharp-kill-omnisharp-server-h ()
|
|
|
|
(unless (doom-buffers-in-mode 'csharp-mode (buffer-list))
|
|
|
|
(omnisharp-stop-server)))
|