From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: How to get decent java-script support Date: Thu, 25 Jun 2015 12:12:48 -0700 Message-ID: References: <87h9pw37jv.fsf@gmx.us> <558BC8F1.9010107@yandex.ru> <87lhf7ltix.fsf@gmx.us> <558C1AE4.9020305@yandex.ru> <87oak3k5j2.fsf@gmx.us> <558C49BE.2020403@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1435259606 10119 80.91.229.3 (25 Jun 2015 19:13:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2015 19:13:26 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" , Rasmus To: Dmitry Gutov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 25 21:13:26 2015 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 1Z8CaR-0002EE-4F for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 21:13:23 +0200 Original-Received: from localhost ([::1]:57155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8CaQ-0006d2-BQ for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 15:13:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8CaD-0006cv-Ns for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 15:13:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8CaC-00080A-WE for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 15:13:09 -0400 Original-Received: from mail-ob0-x230.google.com ([2607:f8b0:4003:c01::230]:35557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8CaC-0007zx-QL for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 15:13:08 -0400 Original-Received: by obbop1 with SMTP id op1so53285817obb.2 for ; Thu, 25 Jun 2015 12:13:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=jNiaH9HrJMig2tJ6oxcwbwc3EIVCe7axAkXfVXGyMy0=; b=pof3n6IWCDlBL4xNEihL1VHIvrL2sL6oiPiZjErHPH3OEImIpp08T8Nt76EOwKETbe 2Q1e+B8+IDs1JIZzZS/7nTG3B2vhcuxeEm+pscHSXJ8LJvYPL0h42K5Swzc9vwVbrzmU dqR3JMTiCNHp3sLxJRYmAdgkaGR4sV9C3f5VTuPM39U12AtMXykgkG+c3mroEEbQXxku tRIQ3kozzA8iJ1peB/U44ffMYtGqkleJDNIHiud1b/n5yLOKHTVd7S207eq4dyPadCkx neJ4VgPPBM8GGR6ahOp8Bd4+mG84qjlOCm88LV9XuhnqQRBwYav7oOF2DncnOXJ2oGl2 3Z1w== X-Received: by 10.60.141.42 with SMTP id rl10mr40506834oeb.25.1435259587902; Thu, 25 Jun 2015 12:13:07 -0700 (PDT) Original-Received: by 10.76.168.70 with HTTP; Thu, 25 Jun 2015 12:12:48 -0700 (PDT) In-Reply-To: <558C49BE.2020403@yandex.ru> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::230 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105177 Archived-At: >> Can I keep the indent in general, but not call it on ";"? > > Disable electric-indent-mode? Or electric-indent-local-mode, if your Emacs is recent enough. Something like this should also work, if you do want electric indent on other chars: (add-hook 'js2-mode-hook (lambda () (setq-local electric-indent-chars (remq ?\; electric-indent-chars)))) See `C-h v electric-indent-chars' for what else is in there. -- john