News for hackers. Stuff that matters.
Re:Making Emacs Popular Again (2020) by CJefferson on Thursday November 04, 2021 @08:58AM (#29106566)
Speaking as someone who sees a lot of students start using text editors for the first time, VSCode has two massive advantages over Emacs:

1) Most students already basically know their OS's graphical interface -- the "basic keys" like cut/copy/paste/load/save all work as expected.

2) The first time you load many common filetypes (like Java for example), a box pops up saying "Do you want me to install a nice set of standard Java plugins?"

Both points are really useful for getting started quickly, but would I imagine be really hard for emacs. The first would require changing default behaviour on first startup, the second would need accepting some set of people to decide the "default" sets of plugins.

For those who say "emacs is worth learning", that might be true, but when students can choose between Emacs, Vim, VSCode, nano, Intellij, pycharm, Eclipse, Atom, Sublime Text or Notepad++ (that's all the editors I think I've seen in the last year), they need a special reason to give emacs all that extra work needed to understand it.

Vim/Neovim had a bump a few years ago and got really popular (although that might be over now, at least on my limited experience). I think that was because there were obvious improvements going on, which attracted students to take a look.

Re:Making Emacs Popular Again (2020) by xroche on Thursday November 04, 2021 @09:41AM (#29107051)
> The first time you load many common filetypes (like Java for example), a box pops up saying "Do you want me to install a nice set of standard Java plugins?"

This. Used Emacs for fifteen years professionally, and I gave up when I had to reinstall my laptop, as having intellisense-like features and easy navigation in Emacs is a complete pain.

I actually did not intent to switch to VSCode, but after a couple of hours of scratching my head with list configuration files, I ended up "trying" VSCode, and after a couple of _minutes_, everything was working (completion, navigation etc.)

After a couple of tweaking, clangd was plugged, and I had direct visual compiler feedback in realtime while typing code in the window.

VSCode is not "better". It's just another world.

Re:Making Emacs Popular Again (2020) by NoGravitas on Thursday November 04, 2021 @10:25AM (#29107589)
I've used Emacs for 30 years, and I have no intention of ever giving it up, but IMO this is somewhat accurate. The package installation and configuration story on Emacs has gotten a lot better over the last ten years or so, but there really ought to be a kind of meta package installer and configurator that does exactly what VSCode does: when it finds a file that it doesn't handle specially but for which there is an existing package or set of packages, install those packages and configure them with reasonable defaults.

Spacemacs does this, which is the main nice thing about it. Unfortunately, it also carries a lot of other baggage rather than just doing this.

Re:Making Emacs Popular Again (2020) by brabel on Thursday November 04, 2021 @12:20PM (#29109071)
Emacs Prelude[1] does exactly that.

It comes with very few extra packages installed, but when you try to open a file in a certain language, it will offer to install a set of "standard" packages for you that enable support for it.

[1] https://prelude.emacsredux.com/en/latest/

Re:Making Emacs Popular Again (2020) by AzzieElbab on Thursday November 04, 2021 @11:13AM (#29108209)
- I've used Emacs for 30 years, and I have no intention of ever giving it up - why? I hear it is much easier to quit then vim :)
Re:Making Emacs Popular Again (2020) by vidarh on Thursday November 04, 2021 @12:17PM (#29109036)
I gave up emacs by writing my own editor... I realised I could write one in fewer lines than my emacs config...
Re:Making Emacs Popular Again (2020) by NoGravitas on Thursday November 04, 2021 @01:58PM (#29110443)
I have noticed that on average, I throw out my emacs config and start from scratch every ten years or so.
Re:Making Emacs Popular Again (2020) by globular-toast on Thursday November 04, 2021 @10:14AM (#29107438)
My emacs setup takes minutes to install on a new computer. I use borg, but there are many other ways to do it.
Re:Making Emacs Popular Again (2020) by mr337 on Thursday November 04, 2021 @12:23PM (#29109103)
I was thinking the same thing. I use spacemacs and have moved to about 5 laptops over the last five years. Just bring along the .spacemacs files and any supporting tools like ripgrep etc and I am up and running.
Re:Making Emacs Popular Again (2020) by oblio on Thursday November 04, 2021 @12:23PM (#29109112)
How long did it take you to assemble your setup?

Wall time, not fuzzy memories à la "it takes 5 minutes to cook this".

My bet? Tens, if not hundreds of hours.

Re:Making Emacs Popular Again (2020) by Jtsummers on Thursday November 04, 2021 @12:46PM (#29109454)
I've probably spent less than 50 hours total over 20 years on my emacs configuration. But it wasn't all at once. And now I just copy the .emacs file between systems. Tweaking it is maybe minutes a year now. If I want to do something with, say, Go, I just download the appropriate mode. The longest time spent was when I had a few bespoke languages at work that had no text editor support in any editor. I wrote some minor modes to support them, that was probably 10 hours total with most of the time on the first minor mode, and the rest flowing quickly thanks to the prior experience.

EDIT: For comparison, I've probably spent 100x that (if not more) on Linux configurations.

Re:Making Emacs Popular Again (2020) by globular-toast on Thursday November 04, 2021 @02:04PM (#29110527)
Countless hours. How long do you think a carpenter spent learning and developing t his tool kit?
Re:Making Emacs Popular Again (2020) by oblio on Thursday November 04, 2021 @03:10PM (#29111293)
I don't know about you, but my toolkit, which I'm perfecting, is programming language paradigms, design patterns, algorithms, programming language SDKs, popular libraries and frameworks, etc.

And there isn't enough time in the world to become as proficient as I'd like for those, let alone if I'd waste time to optimize tools to get 99.999% efficiency with them.

At some point your hammer is good enough and your saw is sharp enough.

Re:Making Emacs Popular Again (2020) by globular-toast on Thursday November 04, 2021 @05:13PM (#29112609)
> I don't know about you, but my toolkit, which I'm perfecting, is programming language paradigms, design patterns, algorithms, programming language SDKs, popular libraries and frameworks, etc.

Well that's great but none of that gets anything done. You need to be able to write programs effectively.

> At some point your hammer is good enough and your saw is sharp enough.

Yeah. I don't regularly invest many hours into emacs. You asked how many hours went into it. Over the past 15 years it's countless hours. Over the past year, not many at all.

Re:Making Emacs Popular Again (2020) by oblio on Friday November 05, 2021 @08:17AM (#29118143)
> Well that's great but none of that gets anything done. You need to be able to write programs effectively.

:-)) Of course it does. Most of my time isn't spent in actually writing the programs. It's in reading and understanding what they do, how to best modify them, debugging issues, etc.

I'd guess I spend about 10% of my time, at most, actually editing characters.

Re:Making Emacs Popular Again (2020) by donio on Thursday November 04, 2021 @03:08PM (#29111274)
Not the OP but yeah, it's definitely up there for me.

BUT the big difference is that the decades old portions of my .emacs are still very relevant and in use every day while basically all the work I've sunk into configuring some long forgotten GUI junk has rotted away long ago and has to be redone over and over again.

We all spend an enormous amount of time tinkering with things but unlike Emacs most of it is so ephemeral that it's forgotten the next day.

Re:Making Emacs Popular Again (2020) by convolvatron on Thursday November 04, 2021 @01:15PM (#29109869)
my setup is 200 line long. on a new machine I just scp it over. many years ago they dropped support for automatically decoding files with a 'Z' extension, so I had to change that sometime in the 90s.

total time invested over 40 years - less than 4 hours.

Re:Making Emacs Popular Again (2020) by stjohnswarts on Thursday November 04, 2021 @09:12PM (#29114386)
It's also easy to sync your vscode setup between machines, although not quite as easy as vim and emacs (imho).
Re:Making Emacs Popular Again (2020) by bachmeier on Thursday November 04, 2021 @12:28PM (#29109180)
This is why I still use Emacs for a lot of things. Just not programming.
Re:Making Emacs Popular Again (2020) by vintermann on Thursday November 04, 2021 @09:24AM (#29106871)
Vim is different enough that when its fans say it's superior, at least some people think it's plausible enough that it's worth learning. And even if they don't become appreciably more productive by it, at that point it's sunk cost and they might as well keep using it.

The last time I had any reason to consider getting into emacs, was when I came across a proof assistant many years ago that basically required it - it used emacs to provide an interactive interface. Not unlike how everyone uses electron/chrome these days to quickly provide a familiar interactive interface. It was like an exotic artefact from a parallel universe where emacs' conventions became dominant instead of IBM and Microsoft's.

Re:Making Emacs Popular Again (2020) by wayoutthere on Thursday November 04, 2021 @10:09AM (#29107381)
I personally love Vim because once you know how to work it, you can code extremely quickly. You don’t really even need any macros (though they can make you even faster) — I find the default commands to be fast enough that I consider vim to be an “expert interface” for text editing.

Also love the VS Code vim plug-in.

Re:Making Emacs Popular Again (2020) by agentwiggles on Thursday November 04, 2021 @10:50AM (#29107910)
The fact that vim-style modal editing can be implemented in other editors is huge. I use console vim frequently, but when I need to bump up to something more IDE-like (VSCode or a Jetbrains IDE), I can carry 99% of the vim functionality I use, and be up and running with a minute or two of config.
Re:Making Emacs Popular Again (2020) by gjvc on Thursday November 04, 2021 @11:56AM (#29108739)
Computer Science students would greatly benefit from an introductory-level course in the two of the most historically influential languages -- LISP and Smalltalk.

Emacs as an editor does take effort to learn, and it's a different type of effort from all the other editors you mention, because they are all quite different beasts.

In the end, it comes down to pedagogical considerations and how each individual learns.

Emacs has suffered by having an awfully austere default installation, and Linux distributions have refrained from delivering a version with something like Doom or Prelude to make it more approachable. (Prelude is my favourite.)

Re:Making Emacs Popular Again (2020) by Jtsummers on Thursday November 04, 2021 @12:26PM (#29109154)
Not always with those two languages, but in many CS curricula in the US there is a "programming languages" course that covers between 4 and 10 [0] languages in different language families. Prolog and Common Lisp (or Scheme) are typically included, you may get Smalltalk in there depending on the school. It's brief, because it's one course, but it's usually a 3rd year course so students should be competent programmers by then (that is, an Algorithms 101 course but in Lisp would be a slog for them).

Other schools make a point (or made, not sure the current state) of changing languages between courses in the first couple years and giving more choice to students later. Like, an OO course would have been taught with Smalltalk after an intro algorithms/data structures course sequence using Java, Python, or other languages. A compilers course may have used SML, but it wasn't an SML course, just a compilers course that happened to use SML.

[0] The most I've seen, it was absurdly paced, an intern was taking that one.

Re:Making Emacs Popular Again (2020) by gjvc on Thursday November 04, 2021 @02:31PM (#29110853)
You'd certainly want to avoid spreading yourself too thin, which is why I specifically limited my hypothetical first-year module to these two languages, as they would provide the (IMHO) ideal context for learning the rest.
Re:Making Emacs Popular Again (2020) by pxc on Thursday November 04, 2021 @10:47AM (#29107876)
> 2) The first time you load many common filetypes (like Java for example), a box pops up saying "Do you want me to install a nice set of standard Java plugins?"

Spacemacs also does this, and it's a big part of why I stuck around long enough to discover some of the plugins that make the Emacs world really special, like Org mode and Magit.

I'm still no Emacs hacker, but I know enough to get by, and that a good starter kit can make me productive in Emacs in just a few minutes.

Re:Making Emacs Popular Again (2020) by sleepycatgirl on Thursday November 04, 2021 @12:35PM (#29109277)
Yee, very similar here, Though for me, Doom Emacs, very simple to set up, and was more or less just work for me.

Though one day I will bother to configure emacs from scratch, but that day is not today.

Re:Making Emacs Popular Again (2020) by pxc on Thursday November 04, 2021 @12:40PM (#29109356)
I'm planning to use the next time I move to a new computer to switch to Doom Emacs and start over with some of my other, old dotfiles, too
Re:Making Emacs Popular Again (2020) by jimbokun on Thursday November 04, 2021 @09:49AM (#29107140)
> Both points are really useful for getting started quickly, but would I imagine be really hard for emacs. The first would require changing default behaviour on first startup, the second would need accepting some set of people to decide the "default" sets of plugins.

I actually don't think these are very hard from a technical perspective.

The first has been done in the past. Aquamacs was a version of Emacs for Mac OS that supported conventional Mac keyboard shortcuts, in addition to the Emacs ones.

The second should really just be a matter of matching certain file extensions and prompting to download the most popular mode for that file type. The Emacs package manager is very good, so it's a simple change to just include a mapping from file extension to Emacs package and trigger the prompt when opening a file of a given type for the first time.