emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/typescript-mode f20103a448 154/222: Add `delete-selection`


From: ELPA Syncer
Subject: [nongnu] elpa/typescript-mode f20103a448 154/222: Add `delete-selection` hints
Date: Sun, 6 Feb 2022 16:59:28 -0500 (EST)

branch: elpa/typescript-mode
commit f20103a4487a404d11521305db63f550d9eb3fe1
Author: Eli Barzilay <eli@barzilay.org>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>

    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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]