From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: [PATCH 02/10] gnu: Add emacs-js2-mode. Date: Wed, 1 Jun 2016 10:05:30 -0400 Message-ID: <20160601140538.20311-2-dthompson2@worcester.edu> References: <20160601140538.20311-1-dthompson2@worcester.edu> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b86n7-0007QY-L1 for guix-devel@gnu.org; Wed, 01 Jun 2016 10:06:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b86n0-0004e9-OS for guix-devel@gnu.org; Wed, 01 Jun 2016 10:06:36 -0400 Received: from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]:34445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b86n0-0004dq-K5 for guix-devel@gnu.org; Wed, 01 Jun 2016 10:06:30 -0400 Received: by mail-qt0-x241.google.com with SMTP id d51so231409qte.1 for ; Wed, 01 Jun 2016 07:06:30 -0700 (PDT) In-Reply-To: <20160601140538.20311-1-dthompson2@worcester.edu> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: David Thompson From: David Thompson * gnu/packages/emacs.scm (emacs-js2-mode): New variable. --- gnu/packages/emacs.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 71f2f8b..cad843c 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -1817,3 +1817,26 @@ agree upon.") convenient interface to your recently and most frequently used commands. And to all the other commands, too.") (license license:gpl3+))) + +(define-public emacs-js2-mode + (package + (name "emacs-js2-mode") + (version "20150909") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/mooz/js2-mode/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1nsm36c4kwb473p13i58fgrnlk8fbn3rdhj47d9xz70az4ra44q0")))) + (build-system emacs-build-system) + (home-page "https://github.com/mooz/js2-mode/") + (synopsis "Improved JavaScript editing mode for Emacs") + (description + "Js2-mode provides a JavaScript major mode for Emacs that is more +advanced than the built-in javascript-mode. Features include accurate syntax +highlighting using a recursive-descent parser, on-the-fly reporting of syntax +errors and strict-mode warnings, smart line-wrapping within comments and +strings, and code folding.") + (license license:gpl3+))) -- 2.8.3