News for hackers. Stuff that matters.
Re:A CEO's Guide to Emacs (2015) by massysett on Monday May 09, 2022 @08:48PM (#31321942)
Emacs is not so much an editor as it is a tool well-suited for writing custom editors. This is why Orgmode is so great and why its Emacs implementation is peerless. I used Orgmode for some time. I was not really an Emacs user. I used Orgmode and my Emacs use was incidental to that.

If there isn’t already a good mode for what you want to do, Emacs is good only if you want to write the mode. For instance Haskell support in Emacs is not great; the most-used mode is not part of GNU Emacs and falls well short of the quality standards of the modes GNU ships. I found myself trying to do Haskell in Emacs because I already used Emacs for Orgmode. This was a mistake. I was better off doing Haskell in Vim.

So for stuff that has a good mode—Org, lisp, C, mail if that is your kind of thing—use Emacs. Otherwise don’t bother, unless you like programming your editor.

Re:A CEO's Guide to Emacs (2015) by mplanchard on Monday May 09, 2022 @09:57PM (#31322477)
Haskell development with the haskell language server is pretty nice in emacs I think
Re:A CEO's Guide to Emacs (2015) by abrax3141 on Tuesday May 10, 2022 @02:13AM (#31324016)
> Emacs is not so much an editor as it is a tool well-suited for writing custom editors.

Yup. And not entirely coincidentally it uses Lisp, which is not so much a programming language as a tool for writing custom programming languages.

Re:A CEO's Guide to Emacs (2015) by na85 on Monday May 09, 2022 @09:42PM (#31322376)
>Emacs is not so much an editor as it is a tool well-suited for writing custom editors.

I hate this meme and wish it would die.

Emacs is a perfectly suitable editor that happens to have really bad defaults because the developers are mostly out of touch grognards.

With a modest amount of effort, emacs could be made to have appealing aesthetics and sane defaults, but because eMaCs Is An OpErAtInG sYsTeM it stays bad.

Re:A CEO's Guide to Emacs (2015) by rout39574 on Monday May 09, 2022 @10:03PM (#31322533)
Is there a context from which Emacs' defaults are bad, other than "Windows did it differently!" ?

I'm asking because I learned its defaults before windows had the market prevalence that it does, and it just doesn't seem all that different from an outside perspective.

I think the term 'grognard' is not helpful to your case. When I read it I find myself assuming that you're dismissing the experiences of people whose context starts before yours. You might prefer to give a different impression.

Re:A CEO's Guide to Emacs (2015) by na85 on Monday May 09, 2022 @10:33PM (#31322739)
>Is there a context from which Emacs' defaults are bad, other than "Windows did it differently!" ?

There are dozens of low hanging fruit.

Off the top of my head:

- dispensing with the absurd references to Alt as Meta that haven't been relevant for 35 years

- bringing the terminology in the documentation into the 2000s by fixing what's called window, a pane, etc.

- including CUA mode as default for ease of onboarding windows users

- including per-pixel/smooth scrolling which AFAICT is only available via the emacs-mac port

- updating the graphical interface to make it look modern and sophisticated instead of the current look which can best be described as "abandonware chic"

- improving handling of large files with long lines so the editor doesn't choke

- setting the gc threshold to a much higher value

- the yes/no vs y/n thing that literally everyone rebinds

- make middle click insert at the cursor instead of where the mouse is

I'm certain there are dozens of others.

Re:A CEO's Guide to Emacs (2015) by iib on Tuesday May 10, 2022 @04:40AM (#31324867)
- The Meta key was surprisingly a nice thing as I moved to a macbook, as I already didn't think of an Alt as Alt, but I agree, it should be changed. - Richard Stallman was actually ok with this change, he said that it should take a couple of releases so that users don't get confused, but he was in principle ok with it. - This will be very hard to change, for two reasons: Emacs is older than these conventions, and the mailing list argument was that it is not the fault of Emacs that CUA was a mistake, as it didn't follow earlier conventions that Emacs did. The second reason is that Emacs is primarily a bridge from Windows to GNU, so GNU users will be treated with priority. - This is solved in emacs-29, and it works quite nicely. - This is in the works, but it is hard work, see the pgtk branch. - There are elpa packages for these, like vlf, but I agree it should be more of a priority in core Emacs. I think there are always efforts to improve these as well. - Perhaps, they have been conservative with these values. - I think there is also a mode for that, but it should be done in core. I think one of the arguments here was that sometimes, it is better to make the user type "yes" instead of "y", for more critical actions. - I have no comment on this one, but I would add the ability to scroll without the point--cursor--following me around.

The main problem, as they often mention on the mailing list, is that the manpower is low. There is no reason they don't want to solve the large technical problems, like very large files.

Re:A CEO's Guide to Emacs (2015) by amake on Tuesday May 10, 2022 @02:01AM (#31323965)
> - including per-pixel/smooth scrolling which AFAICT is only available via the emacs-mac port

The master branch (Emacs 29) has this in `pixel-scroll-precision-mode` and it seems to perform better than the emacs-mac implementation.

Re:A CEO's Guide to Emacs (2015) by gpderetta on Tuesday May 10, 2022 @02:24AM (#31324081)
The problem with changing the wondow/pane nomenclature is that it is tied with the naming of many elisp functions. Changing the first without the others would be confusing and changing the elisp functions is going to pointlessly break compatibility with thousands of scripts.
Re:A CEO's Guide to Emacs (2015) by JasonFruit on Tuesday May 10, 2022 @12:27AM (#31323449)
I anticipated being able to agree with you more than I do. Long lines, GC, yes, the rest, no.
Re:A CEO's Guide to Emacs (2015) by na85 on Tuesday May 10, 2022 @12:36AM (#31323489)
By your own statement in another comment you "think it's perfect".

It would seem you and I have very little common ground.

Re:A CEO's Guide to Emacs (2015) by JasonFruit on Tuesday May 10, 2022 @09:45AM (#31327047)
I meant the word 'grognard'. Many of us are greybeards still fighting the last war.
Re:A CEO's Guide to Emacs (2015) by slightwinder on Tuesday May 10, 2022 @07:00AM (#31325606)
> Is there a context from which Emacs' defaults are bad, other than "Windows did it differently!" ?

Being different too much can be bad too. Emacs has not much big fails, but many small things which lead to being bad by thousand little cuts.

> When I read it I find myself assuming that you're dismissing the experiences of people whose context starts before yours.

Why does it matter? Nobody want's to take your emacs from you. The discussion is always about bringing in new people, and why people leave emacs. And that emacs has a problem with this is not new. Emacs is always swinging between hype and death, and it's not like this has become much better over time.

Re:A CEO's Guide to Emacs (2015) by patrick451 on Wednesday May 11, 2022 @02:44AM (#31336564)
We should also make vim non-modal by default. Pressing characters and not getting output? Now __that__ is weird. I can't believe anybody new even tries it.
Re:A CEO's Guide to Emacs (2015) by slightwinder on Wednesday May 11, 2022 @05:46AM (#31337699)
Modal-modes are beneficial. But Emacs differences are mostly just different, not beneficial. And it's not as if vim and it's forks are not being modernized...
Re:A CEO's Guide to Emacs (2015) by bananamerica on Tuesday May 10, 2022 @12:42AM (#31323524)
The default keybindings are hard on your fingers.
Re:A CEO's Guide to Emacs (2015) by spacexsucks on Tuesday May 10, 2022 @01:04AM (#31323639)
All i had to do was rebind caps to ctrl. Easiest keybindings ever
Re:A CEO's Guide to Emacs (2015) by bananamerica on Tuesday May 10, 2022 @01:48AM (#31323884)
Sure that helps. But on Emacs everything is a chord, some quite awkward, and sometimes you have two or three chords in sequence. I don't like bending my fingers, so I use Doom Emacs for Evil.
Re:A CEO's Guide to Emacs (2015) by AlbertoGP on Tuesday May 10, 2022 @03:00AM (#31324329)
Exactly, those defaults are a disgrace and also are surprisingly difficult to change, particularly when the action includes a mini-mode with its own key bindings so you remap a key, but then it still does not work after the first key press. Yes, you can find all the variables you need to change to remap a specific key but it wastes way more time than it should.

I guess most people know by now, but Emacs’ keybindings were designed for a specific keyboard that had way more keys that usual: https://retrocomputing.stackexchange.com/questions/495/what-...

As Emacs was ported, they replaced dedicated keys with chords and sequences and we ended up in this mess, instead of at some point doing a full review of the default keybindings to match the input devices we actually have, merging in the conventions that had developed in the meantime.

After three decades of use, I have internalized those defaults because I keep having to use Emacs in its default configuration from time to time, have remapped many keys in my workstation, bound custom functions and all that. It’s still a paper cut, and also prevents me from recommending Emacs to more casual users.

Re:A CEO's Guide to Emacs (2015) by cyberbanjo on Tuesday May 10, 2022 @09:51PM (#31334972)
To prevent chords use sticky keys https://www.emacswiki.org/emacs/StickyModifiers
Re:A CEO's Guide to Emacs (2015) by JasonFruit on Monday May 09, 2022 @10:27PM (#31322700)
I think it's perfect: soldiers of the old guard. I think many of us who love Emacs fall into that category.
Re:A CEO's Guide to Emacs (2015) by alimov on Monday May 09, 2022 @10:02PM (#31322524)
> “With a modest amount of effort, emacs could be made to have appealing aesthetics and sane defaults…”

Sure, for some peoples use cases. Also “modest amount” isn’t really true for new users. The time it takes to look up potential configs, figure out how to make changes, play around and see if that’s what they want from their editor, and in general figure out what’s possible doesn’t really happen in a “modest amount” of time.

> “>Emacs is not so much an editor as it is a tool well-suited for writing custom editors.”

There is nothing wrong with this comment, it is a correct statement because emacs by your own admission is a flexible tool that can be modified to one’s liking. For a lot of people that means tailoring it around their workflows/uses before it’s actually useful to them.

Re:A CEO's Guide to Emacs (2015) by na85 on Monday May 09, 2022 @10:26PM (#31322691)
>The time it takes to look up potential configs, figure out how to make changes, play around and see if that’s what they want from their editor, and in general figure out what’s possible doesn’t really happen in a “modest amount” of time.

I'm saying that the developers could, with modest effort, provide a dramatically improved out-of-the-box experience for 80% of users that obviates the need for a lot of config futzing.

Re:A CEO's Guide to Emacs (2015) by alimov on Monday May 09, 2022 @10:33PM (#31322738)
Yeah that could be true.
Re:A CEO's Guide to Emacs (2015) by pjmlp on Tuesday May 10, 2022 @02:26AM (#31324097)
Back in the 1990's, while disappointed with IDE situation on UNIX I ended up landing on XEmacs, which was way better than Emacs back then.

Used it enough until 2005 to get it several features burned on my brain.

Nowadays I really don't see the point, and ironically neither does the creator of XEmacs.

https://www2.computerworld.com.au/article/207799/don_t_use_e...

Re:A CEO's Guide to Emacs (2015) by midislack on Tuesday May 10, 2022 @12:42AM (#31323522)
Defaults in emacs are great. You're just brain damaged like all ed and ed-adjacent editor users. No offense.
Re:A CEO's Guide to Emacs (2015) by klibertp on Tuesday May 10, 2022 @09:08AM (#31326644)
How could anyone call another "brain damaged" and then demand to them not to be offended? Like, seriously. If you're going to insult someone, live up to it and prepare for a backlash instead of trying to get away with "no offense" quip...

Also: Emacs user here, for more than a decade. My opinion: the defaults in Emacs are horrible. They were set in different times, on different computers, with different keyboards. They should get changed. I think most users agree with that. The problem is that whatever we would change the defaults to, it would estrange a part of the community. So nothing gets done. Advanced users don't see the point of struggling, since they already have everything rebound to the keys/menus/toolbars/etc. they want and need. New user see the need, but don't have the skills. It's really a Gordian-knot type of problem.

As an aside: similar thing goes on with Emacs' terminal support. It's obvious that maintaining compatibility with display technology from the '70s takes a real toll on both developers time, and improvements that would be possible if not for that compatibility. But then you get a huge crowd that uses Emacs via SSH somewhere, and they go rabid if you mention anything about dropping the terminal support.

Re:A CEO's Guide to Emacs (2015) by midislack on Tuesday May 10, 2022 @11:31PM (#31335565)
I must just be somebody who likes things that are "really bad" because I'm "out of touch." One neat thing I learned ages ago is when you run across a blowhard troll, you top them, go one better. Rile them up and beat them at their own game.

Why defend somebody who's quite literally asking for it? Doesn't make sense.

Re:A CEO's Guide to Emacs (2015) by klibertp on Wednesday May 11, 2022 @09:36AM (#31339744)
Ah. Ok. Carry on, then... ;-)
Re:A CEO's Guide to Emacs (2015) by na85 on Tuesday May 10, 2022 @06:34PM (#31333552)
>How could anyone call another "brain damaged" and then demand to them not to be offended? Like, seriously. If you're going to insult someone, live up to it and prepare for a backlash instead of trying to get away with "no offense" quip...

Just some shmuck whose identity is all wrapped up in his text editor.

Kinda sad really.

Re:A CEO's Guide to Emacs (2015) by na85 on Tuesday May 10, 2022 @12:50AM (#31323574)
I actually use emacs as my primary editor and like it a lot.

The difference is I'm not a zealot.

Re:A CEO's Guide to Emacs (2015) by midislack on Tuesday May 10, 2022 @01:11AM (#31323666)
If you weren’t a zealot you wouldn’t be complaining about eMacs lacking the defaults you’re used to in whatever brain damaged editor you are more adroit with. It’s a common thing, don’t worry about it. Most people are brain damaged from poor first choice in editors.
Re:A CEO's Guide to Emacs (2015) by na85 on Tuesday May 10, 2022 @03:11AM (#31324394)
>you wouldn’t be complaining about eMacs lacking the defaults you’re used to in whatever brain damaged editor you are more adroit with

You're not actually understanding what I've written, if this is your takeaway.