[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get decent java-script support
From: |
John Mastro |
Subject: |
Re: How to get decent java-script support |
Date: |
Thu, 25 Jun 2015 12:12:48 -0700 |
>> 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