branch: elpa/typescript-mode
commit f20103a4487a404d11521305db63f550d9eb3fe1
Author: Eli Barzilay <[email protected]>
Commit: Jostein Kjønigsen <[email protected]>
Add `delete-selection` hints
Makes it properly delete selected text if any.
---
typescript-mode.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/typescript-mode.el b/typescript-mode.el
index 66c45bd544..c08fc95142 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -764,6 +764,7 @@ comment."
(eq (current-column)
(1+ (current-indentation)))))
(indent-according-to-mode))))
+(put 'typescript-insert-and-indent 'delete-selection t)
(defun typescript-insert-and-autoconvert-to-template (key)
"Run the command bount to KEY, and autoconvert to template if necessary."
@@ -771,6 +772,7 @@ comment."
(call-interactively (lookup-key (current-global-map) key))
(when typescript-autoconvert-to-template-flag
(typescript-autoconvert-to-template)))
+(put 'typescript-insert-and-autoconvert-to-template 'delete-selection t)
;;; Syntax table and parsing