News for hackers. Stuff that matters.
Re:Emacs 26.3 by declank on Thursday August 29, 2019 @07:50AM (#20828624)
The improved js-mode in 27.x is definitely worth checking out, especially if you use React/JSX. Had many issues wrestling with indentation in previous setup. https://github.com/mooz/js2-mode/blob/master/README.md#react...
Re:Emacs 26.3 by arthurdenture on Thursday August 29, 2019 @09:43AM (#20829395)
That is very good to hear. I've used Emacs for a decade, but I recently switched to VS Code because JSX support in Emacs was such a mess.
Re:Emacs 26.3 by agentwiggles on Thursday August 29, 2019 @10:50AM (#20829982)
I'm a VSCode user as of a few weeks ago for the same reason. Trying to get React to play nice in emacs, especially when compared to what I got out of the box in VS Code, was an exercise in frustration. Similar problems with Elixir.

I really love spacemacs but I just genuinely don't have time to screw around with my editor constantly, so I ported the bindings I found essential from spacemacs, turned on VS Code's vim emulation, and it's actually been a pretty good experience. It's not perfect, but it's good enough.

Re:Emacs 26.3 by ludwigvan on Thursday August 29, 2019 @11:16AM (#20830231)
rjsx-mode has been around for a few years and handles jsx fine. coupled with prettier mode, I don't have any complaints. have you given those two a try?
Re:Emacs 26.3 by Kjeldahl on Thursday August 29, 2019 @10:05AM (#20829573)
Consider the poor quality of the existing js modes for 26.x, any idea why this depends on a future version of Emacs instead of current versions?

Alternatively, could somebody convince the author of the railwaycat port (Emacs with better macOS integration) to get a version 27 out soon?

Re:Emacs 26.3 by pcr910303 on Thursday August 29, 2019 @11:07AM (#20830141)
> Consider the poor quality of the existing js modes for 26.x, any idea why this depends on a future version of Emacs instead of current versions?

You might as well look at the thread js2-mode was revoked[0] and ergoemacs' article[1].

> Alternatively, could somebody convince the author of the railwaycat port (Emacs with better macOS integration) to get a version 27 out soon?

Er... I would like to point out that it's not 'railwaycat' port but more of Mitsuharu Yamamoto's port[2], and AFAIK he has claimed that he has no interest in maintaing an emacs27 version.

[0] https://lists.gnu.org/archive/html/emacs-devel/2009-08/msg00... [1] http://ergoemacs.org/misc/emacs_javascript_mode_war.html [2] https://bitbucket.org/mituharu/emacs-mac

Re:Emacs 26.3 by Kjeldahl on Thursday August 29, 2019 @11:22AM (#20830286)
Disregarding the history behind js2-mode, if it has been decided that Emacs 27 will feature a much improved js-mode, I was just puzzled that it wasn't put into 26.x as a package already.

I couldn't remember the name of Yamamoto, which is why I said the author of the railwaycat port, where the latter is mostly packaging if I understand it correctly. But Yamamoto is doing most of the heavy lifting yes, and I'm thankful for it.

Re:Emacs 26.3 by uncletaco on Thursday August 29, 2019 @11:13AM (#20830193)
No. He builds off of stable releases because otherwise something could change in the underlying implementation that breaks emacs-mac. It would mean more maintenance on his part.
Re:Emacs 26.3 by harrygeez on Thursday August 29, 2019 @06:03PM (#20834161)
IIRC the creator also releases his port as a patch. You can always try to patch emacs 27 with it.