all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Rasmus <rasmus@gmx.us>, help-gnu-emacs@gnu.org
Subject: Re: How to get decent java-script support
Date: Thu, 25 Jun 2015 12:25:05 +0300	[thread overview]
Message-ID: <558BC8F1.9010107@yandex.ru> (raw)
In-Reply-To: <87h9pw37jv.fsf@gmx.us>

On 06/25/2015 04:23 AM, Rasmus wrote:
> Also, it inserts lots of newlines e.g. for "{}" pairs, which is
> annoying for inline functions (e.g. in .map arguments).  I tried to turn
> off electricity, but that didn't make it stop with the excessive newlines.

This sounds like you're turned on electric-layout-mode, somewhere in 
your config.

> Some question on JS in Emacs:
>
> First, is it possible to get js(2) mode to allow chain-style indentation
> and be less, or more, clever about braces and semicolons?

There are some vars you can customize, but probably not enough.

> Second, can one somehow connect hook into some sort of documentation
> system with java-script?  At least for standard ECMAScript?  Like
> "help(fun)" in Python and C-h for Emacs Lisp etc etc.  At this point, I
> could even live with it "just" opening Mozilla dev. pages in eww or
> Firefox.

Tern supports completion and documentation lookup.

> Third, related to two, can eldoc somehow be taught to work with JS?

That may be a good feature request for tern-mode.

> I tried something called tern since it supposedly offer completion for
> company.  I don't remember why I dropped it...

Try it again, maybe.



  reply	other threads:[~2015-06-25  9:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-25  1:23 How to get decent java-script support Rasmus
2015-06-25  9:25 ` Dmitry Gutov [this message]
2015-06-25 15:03   ` Rasmus
2015-06-25 15:14     ` Dmitry Gutov
2015-06-25 18:27       ` Rasmus
2015-06-25 18:34         ` Dmitry Gutov
2015-06-25 19:12           ` John Mastro
2015-06-25 21:40           ` Rasmus
2015-06-25 23:49         ` Rasmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=558BC8F1.9010107@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rasmus@gmx.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.