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

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

[nongnu] elpa/typescript-mode b7074c5dea 106/222: Remove redundant code


From: ELPA Syncer
Subject: [nongnu] elpa/typescript-mode b7074c5dea 106/222: Remove redundant code
Date: Sun, 6 Feb 2022 16:59:22 -0500 (EST)

branch: elpa/typescript-mode
commit b7074c5dea3da995d9f72e1bce0088003f27728e
Author: Wilfred Hughes <Wilfred.Hughes@man.com>
Commit: Wilfred Hughes <Wilfred.Hughes@man.com>

    Remove redundant code
    
    define-derived-mode already ensures that major-mode and mode-name are
    set correctly.
---
 typescript-mode.el | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/typescript-mode.el b/typescript-mode.el
index 6d129e9a3b..1b288f1eb2 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -2686,9 +2686,6 @@ Key bindings:
   ;; Frameworks
   (typescript--update-quick-match-re)
 
-  (setq major-mode 'typescript-mode)
-  (setq mode-name "typescript")
-
   ;; for filling, pretend we're cc-mode
   (setq c-comment-prefix-regexp "//+\\|\\**"
         c-paragraph-start "$"



reply via email to

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