From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Foreman Newsgroups: gmane.emacs.help Subject: Re: Any hints for JavaScript development? Date: Sat, 30 Apr 2016 00:13:17 -0500 Message-ID: References: <87d1p7vhoe.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1461993664 22602 80.91.229.3 (30 Apr 2016 05:21:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Apr 2016 05:21:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 30 07:20:55 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1awNKp-00057k-3t for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Apr 2016 07:20:55 +0200 Original-Received: from localhost ([::1]:57388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awNKl-0007tw-Cc for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Apr 2016 01:20:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awNKM-0007Y3-In for help-gnu-emacs@gnu.org; Sat, 30 Apr 2016 01:20:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awNKA-0004Mk-UB for help-gnu-emacs@gnu.org; Sat, 30 Apr 2016 01:20:21 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awNKA-0004Gp-NF for help-gnu-emacs@gnu.org; Sat, 30 Apr 2016 01:20:14 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1awNK1-0004oX-3s for help-gnu-emacs@gnu.org; Sat, 30 Apr 2016 07:20:05 +0200 Original-Received: from 108-207-85-136.lightspeed.cicril.sbcglobal.net ([108.207.85.136]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Apr 2016 07:20:05 +0200 Original-Received: from jason by 108-207-85-136.lightspeed.cicril.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Apr 2016 07:20:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 108-207-85-136.lightspeed.cicril.sbcglobal.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (darwin) Cancel-Lock: sha1:Daq1IVGznDmBo/chbB+YAB4Ndt8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:109845 Archived-At: Marcin Borkowski writes: > are there any JS developers here who could share their knowledge/Emacs > setup? There seems to be a few JS modes out there, and some things are > not clear to me. For instance, it seems that the features of js2-mode > and flycheck overlap (I don't use either yet): does it make sense to use > them both? What are the auto-completion options (besides plain vanilla > Emacs or things like ivy/helm/icicles and e.g. company)? Any other > hints? (I guess I should probably look at skewer-mode; any others?) Spacemacs' layer for javascript is a good starting reference: https://github.com/syl20bnr/spacemacs/blob/master/layers/%2Blang/javascript/packages.el#L12 While there may be some small overlap between js2-mode and flycheck you'll most likely want them both: js2-mode gives you font lock and indentation and potentially some syntax checking, but flycheck can hook into a wide array of external tools that go beyond what js2-mode provides. Tern + company-tern appears to be the way to go for semantic autocompletion, unless you're using Flow or Typescript in which case those can also provide completion via their packages.