From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.help Subject: Re: How to get decent java-script support Date: Thu, 25 Jun 2015 23:40:32 +0200 Message-ID: <87d20j1n73.fsf@gmx.us> 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 X-Trace: ger.gmane.org 1435268484 26364 80.91.229.3 (25 Jun 2015 21:41:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2015 21:41:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 25 23:41:15 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 1Z8EtU-000438-IN for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 23:41:12 +0200 Original-Received: from localhost ([::1]:57544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8EtT-00018U-GH for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 17:41:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8EtG-00017Q-4Y for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 17:40:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8EtB-0008Nl-2B for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 17:40:58 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:57329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8EtA-0008NZ-Rh for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 17:40:52 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Z8Et6-0003mr-Dj for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 23:40:48 +0200 Original-Received: from 90.163.164.75 ([90.163.164.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Jun 2015 23:40:48 +0200 Original-Received: from rasmus by 90.163.164.75 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Jun 2015 23:40:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 90.163.164.75 User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:BeRgq6d4990TwteHYFklD4iYDOw= 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.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:105186 Archived-At: Thanks Dimitry & John! Dmitry Gutov writes: > Thanks. I'm rather busy, so here's hoping somebody else will get to it soon. Me too (busy and hoping, that is). I'm also having weird issues with company and python, and surrounding text being deleted on completion, but probably it's a company-jedi issue. I haven't had time to debug it properly. >> 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. Right. It's awesome that it relies on default settings and modes. I hope we'll be able to move Org in this direction as well over time. John Mastro writes: > 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)))) That's a great solution, John! Thanks a lot for sharing. Rasmus -- Lasciate ogni speranza, voi che leggete questo.