From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcCzh-0004VC-I3 for guix-patches@gnu.org; Sun, 08 Jul 2018 12:57:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcCze-0003hx-Se for guix-patches@gnu.org; Sun, 08 Jul 2018 12:57:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:43429) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fcCze-0003ho-IC for guix-patches@gnu.org; Sun, 08 Jul 2018 12:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fcCze-000370-9H for guix-patches@gnu.org; Sun, 08 Jul 2018 12:57:02 -0400 Subject: [bug#32097] [PATCH 2/3] gnu: Add emacs-typescript-mode. Resent-Message-ID: From: Mathieu Lirzin Date: Sun, 8 Jul 2018 18:56:11 +0200 Message-Id: <20180708165612.3011-2-mthl@gnu.org> In-Reply-To: <20180708165612.3011-1-mthl@gnu.org> References: <20180708165612.3011-1-mthl@gnu.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32097@debbugs.gnu.org Cc: Mathieu Lirzin * gnu/packges/emacs.scm (emacs-typescript-mode): New variable. --- gnu/packages/emacs.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 97835d22e..8dcf1717c 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -4207,6 +4207,32 @@ features: @end itemize") (license license:gpl3+))) +(define-public emacs-typescript-mode + (package + (name "emacs-typescript-mode") + (version "0.3") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/ananthakumaran/typescript.el" + "/archive/v" version ".tar.gz")) + (sha256 + (base32 + "1gqjirm8scf0wysm7x97zdfbs4qa5nqdl64jfbkd18iskv5mg3rj")))) + (build-system emacs-build-system) + (home-page "https://github.com/ananthakumaran/typescript.el") + (synopsis "Emacs major mode for editing Typescript code") + (description + "This is based on Karl Landstrom's barebones @code{typescript-mode}. +This is much more robust and works with @code{cc-mode}'s comment +filling (mostly). The modifications to the original @code{javascript.el} mode +mainly consisted in replacing \"javascript\" with \"typescript\" + +The main features of this Typescript mode are syntactic highlighting (enabled +with @code{font-lock-mode} or @code{global-font-lock-mode}), automatic +indentation and filling of comments and C preprocessor fontification.") + (license license:gpl3+))) + (define-public emacs-markdown-mode (package (name "emacs-markdown-mode") -- 2.18.0