[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get decent java-script support
From: |
Rasmus |
Subject: |
Re: How to get decent java-script support |
Date: |
Thu, 25 Jun 2015 23:40:32 +0200 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) |
Thanks Dimitry & John!
Dmitry Gutov <dgutov@yandex.ru> 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 <john.b.mastro@gmail.com> 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.