From: John Mastro <john.b.mastro@gmail.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>,
Rasmus <rasmus@gmx.us>
Subject: Re: How to get decent java-script support
Date: Thu, 25 Jun 2015 12:12:48 -0700 [thread overview]
Message-ID: <CAOj2CQR46JFYQV2cxRAE3P4EpLHuUk5MCSQ5eV_p+KRAQ6JfnQ@mail.gmail.com> (raw)
In-Reply-To: <558C49BE.2020403@yandex.ru>
>> 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
next prev parent reply other threads:[~2015-06-25 19:12 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
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 [this message]
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=CAOj2CQR46JFYQV2cxRAE3P4EpLHuUk5MCSQ5eV_p+KRAQ6JfnQ@mail.gmail.com \
--to=john.b.mastro@gmail.com \
--cc=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.