News for hackers. Stuff that matters.
Re:A CEO's Guide to Emacs (2015) by RcouF1uZ4gsC on Monday May 09, 2022 @07:11PM (#31321096)
My impression after reading a lot of blogs by Emacs users is that they spend more time thinking and writing about how to make Emacs do something, than the actual thing they are doing.

For example, there will be more posts about how they mimicked most of the functionality of VSCode or a Jetbrains IDE than about any actual code they wrote (other than elisp).

Given that I am naturally drawn to polishing my tools rather than actually using them, I am afraid that if I try Emacs my time,attention, and productivity will be sucked into the black hole of optimizing my Emacs workflow instead of actually executing my workflow.

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.

Re:A CEO's Guide to Emacs (2015) by dpifke on Monday May 09, 2022 @08:00PM (#31321551)
Or maybe they find Emacs hacks more interesting to blog about than the CRUD they write at $day_job. Or maybe their NDA means they can blog about their tools and not what they're using those tools for.

I don't think it follows that just because you blog about something, it means you spend the majority of your time doing it.

Re:A CEO's Guide to Emacs (2015) by gopiandcode on Monday May 09, 2022 @11:20PM (#31323054)
> For example, there will be more posts about how they mimicked most of the functionality of VSCode or a Jetbrains IDE than about any actual code they wrote (other than elisp).

Are we reading the same articles at all? Most of the Emacs posts I see are about extending features that lesser editors could only dream of supporting (using it as a window manager, media center, GUI etc.).

I always find it suprising how far anti-Emacs zealots will go to try and cast GNU+Emacs is a bad light. Somehow the fact that the GNU+Emacs community cares enough to share their configuration tips is a "bad" thing, rather than just being indicative of a supportive and friendly user community.

I guess if you are stuck in proprietary, telemetry-ridden editors like M$ vs-code, or sublime text, somehow you have to convince yourself that the grass truly isn't greener on the other side, and this is just one such coping mechanism.

Re:A CEO's Guide to Emacs (2015) by throwanem on Monday May 09, 2022 @11:56PM (#31323274)
It's not reasonable to expect everyone to grow out of the "editor wars" phase at the same rate. Some never manage it at all.
Re:A CEO's Guide to Emacs (2015) by mickael-kerjean on Monday May 09, 2022 @07:37PM (#31321338)
I haven't change 1 line of my emacs config for more than 5 years, it's the exact same since I wrote the emacs tutorial series back in 2017 (https://mickael.kerjean.me/2017/03/18/emacs-tutorial-series-...). Sure it was a time sink at the beginning and it tooks some time to stabilise but the initial time investment has paid off
Re:A CEO's Guide to Emacs (2015) by porcoda on Monday May 09, 2022 @08:06PM (#31321593)
I’ve been carrying around the same 20 or so line .emacs that I use with a plain stock emacs for about 15 years. I’m happily productive without a bunch of tweaking. Same with vim: tiny vimrc that I carry around along with one old package that is hard to find online anymore.

In both cases I probably add to or tweak them about once a year.

It’s not a tools fault if you can’t resist tweaking it. If anything, that indicates that you’re not actually optimizing a workflow if that optimization step is actively disrupting a workflow. Self discipline is a good thing to build up for workflow optimization, far more than any tweak to a dotfile.

Re:A CEO's Guide to Emacs (2015) by RcouF1uZ4gsC on Monday May 09, 2022 @09:02PM (#31322064)
> I’ve been carrying around the same 20 or so line .emacs that I use with a plain stock emacs for about 15 years.

What languages do you program in, and do you use code completion/debugging?

I find that code completion is a huge productivity boost for me, as well as having a good interface to a debugger (just the debugger portion of the IDE in Jetbrains justifies the price in my mind).

In addition, smart annotations where the IDE will annotate a function call with the names of the parameters is a huge boost in languages that do not have names parameters (for example C, C++, Rust).

In addition, when you are doing type inference (auto in C++, and let in Rust), having the IDE automatically annotate the variable with the inferred type gives the best of both worlds - allowing me to avoid boilerplate and committing to a type, while also easily allowing me to see what the type is.

I am not sure I can easily get all that out of Emacs or Vim.

Re:A CEO's Guide to Emacs (2015) by ww520 on Monday May 09, 2022 @09:46PM (#31322410)
Use lsp-mode and company-mode for language completion. The lsp-mode connects to the language server on the language I'm developing for language specific semantic rules and syntax. Company-mode does the completion. It is a generic completion framework, which lsp-mode hooks into to provide language specific completion.

The best is that I can use the standard Emacs commands I'm familiar with to use LSP. E.g. Per your example, I can use the describe-thing-at-point command, which is in Emacs for the longest time, to show the inferred type of the variable at the cursor. I can use the same command to show the signature of a function. Lsp-mode hooks into the old command to do the magic based on language context.

Same with the company-mode. Since it's a generic completion framework, I'm already familiar with its commands and key bindings. It works the same for all languages and other editing mode. E.g. in writing English, the completion command would pop up a list of word choice.

Re:A CEO's Guide to Emacs (2015) by anthk on Tuesday May 10, 2022 @07:58AM (#31325997)
Emacs does that with a plugin for Ocaml, for example. You have the ones for C, C++, Rust and so on.
Re:A CEO's Guide to Emacs (2015) by ziftface on Monday May 09, 2022 @08:18PM (#31321695)
Curious what that one old package is

Personally I can't live without a few neovim packages like auto complete and switching files and searching text in a project etc.

I completely agree with the set it and forget it approach though. But if that's the case I think vim/neovim might be your best bet.

Re:A CEO's Guide to Emacs (2015) by throwanem on Monday May 09, 2022 @09:01PM (#31322049)
> My impression after reading a lot of blogs by Emacs users is that they spend more time thinking and writing about how to make Emacs do something, than the actual thing they are doing.

I've been using Emacs for twelve years now.

I don't recall having ever blogged about it, unless we count occasional longish HN comments, usually helping answer a fairly specific question.

Selection bias may be vastly skewing your analysis here, is what I'm trying to say.

Re:A CEO's Guide to Emacs (2015) by melissalobos on Monday May 09, 2022 @07:14PM (#31321121)
I can sympathize with this strongly. I have tried vim/emacs a few times, and frankly I can't see any improvement from just using any reasonable editor. Also from my own experience they tend to be much inferior IDEs than even a not so great one like Geany.
Re:A CEO's Guide to Emacs (2015) by icambron on Monday May 09, 2022 @07:38PM (#31321344)
I’m not trying to convince you to change editors —- it’s a highly personal choice —- but you might be interested in a couple thoughts from someone who’s used practically every editor under the sun but uses neovim by default:

- the main value of vi is editing speed. It’s just much more efficient to edit text this way. Have you ever realized you needed to make a bunch of changes to a file and then sort of groaned at how much legwork that will be? Maybe you even don’t bother because it doesn’t seem worth it? vi usually makes short work of these. It’s hard for me to overstate how big of a productivity impact this has had for me: it makes sure the mechanics are never the bottleneck in my coding process. The editor can keep up with me.

- the most common painpoint with vi is that you don’t get all these snazzy IDE features. That’s why sometimes people run IDEs with vi keybindings which are never quite exact; they want features like language-aware renames and other refactoring support that vi lacks, so they make a tradeoff. But this is actually improving rapidly, thanks to the proliferation of language servers and their rapidly improving support in Neovim. I hope that soon I will no longer have to think about these tradeoffs.

At any rate, everyone should write code in whatever tool they like most, but that’s been my experience with it.

Re:A CEO's Guide to Emacs (2015) by melissalobos on Monday May 09, 2022 @07:42PM (#31321387)
> - the main value of vi is editing speed

If it is purely mechanical type changes I would just use sed or find and replace, otherwise I think scrolling with a mouse and clicking tends to be fast enough. Could you explain a bit more about how it could be faster?

Re:A CEO's Guide to Emacs (2015) by triyambakam on Monday May 09, 2022 @07:51PM (#31321452)
One example is recording a macro - you can then execute it an arbitrary number of times. I've used it e.g. to add quotes and commas to a list of data so it's a proper string array, or to change a string into an object where a property is the former simple string. The workflow would be - record the abstracted process using vi editing commands, then play the macro over where needed.

Probably best to see it in action to fully appreciate it.

Re:A CEO's Guide to Emacs (2015) by icambron on Monday May 09, 2022 @10:16PM (#31322628)
"Fast enough" is sort of complicated. There isn't really a fast enough, per se, just an amount of effort you're willing to put in vs some amount of efficiency gain you get for it. We all hit some point at which more effort doesn't appeal to us, especially relative to all our other priorities, and perhaps that place is scrolling and clicking for you. Who is to say? I'm sure there are people who think of my editing skills as painfully inefficient, and I just can't be bothered to push them past where they are by learning my tools better, or learning new tools, because I'd rather learn something else.

But it really is a lot of faster. I've watched colleagues edit code with the mouse (e.g. move this "if" block under that "else" clause or what have you) and I will say it's much, much slower than I would do in vi. They are not incompetent or clumsy; I would have been slow with the mouse too. In fact, I'm editing this comment with a keyboard and trackpad and it feels awkward and slow.

Here are a few ways in which these actions just happens faster vi:

1. jumping around in the file using your keyboard. Taking your hand off the keyboard, moving the mouse to the right spot, clicking there, putting your hands on the keyboard, and then typing is a lot of movement. In vi, you have lots of tools to just move around, i.e. to do the part you do with the mouse. You have incremental search, bookmarks, jumplists, keys for jumping to the delimiter match, or the next code block, or jumping to a line number or function definition. There are EasyMotion-style plugins that let you jump quickly to whatever you're looking at on the screen. And many more. These are all optimized to be just a couple keystrokes away. They take time to learn and become fluid with but they give you a kind of total, effortless control over what part of the file you are editing.

2. Just good keyboard-centric editing basics. Putting aside all the ways you can move around a file (or files!) and all the ways you can repeat similar actions in different parts of the file, you also just get to be quicker making specific edits. You can _probably_ do all of this with readline-style keyboard shortcuts in other editors (e.g. replace this word with another word without double-cliking it with a mouse), but vi forms a sort of interactive language for doing these edits, and the way vi works just causes you to learn them and use them consistently.

3. Fine-grained control of editing actions. This is the hardest one to explain. Modal editing has the property that your actions are sort of transactions. You are in normal mode, you take some action that puts you in edit mode, you do some typing, and then you leave edit mode and the thing you did is now a block of action. It can be undone as a block and applied again elsewhere as a block. So for example, if I want to replace "}," with ");" on like four lines, I can do that by doing it once and applying it three more times to each line (using "."). Sure, you could also do that with a find-and-replace tool, but just operating that menu isn't worth the overhead for four lines. In vi, that's just how you edit; it's by-the-by, with no special effort required.

4. For more complex repeatable actions, you have macros (which is sort of like a second-level of text editing transaction), vi's strong regex support, actions that work on rectangular selections, and plugins for multiple cursors. One way to think about the sed case is: what if you didn't have to reach for another tool and it was instead sort of conceptually integrated into your everyday editing experience? It would be much lower friction to reach for, so you'd use it more and more efficiently.

There's more, but I think that's the important ones, or at least the ones I think have given me the most mileage. It's all easier to show than tell, and of course YMMV.

Re:A CEO's Guide to Emacs (2015) by pmoriarty on Monday May 09, 2022 @07:35PM (#31321321)
I used vi/vim for 25 years before switching to Emacs and have been using Emacs now for about a decade... with both editors there was always more to learn for me, despite being a veteran user.

There's no way you're going to appreciate the power of either editor after using it only a few times.

Re:A CEO's Guide to Emacs (2015) by bachmeier on Monday May 09, 2022 @09:06PM (#31322093)
Here's an example from this afternoon. I wrote a function that would cut an html div and paste it to a different place in the file. Then I created a keyboard shortcut to call that function, and I added a menu item for it as well. A few minutes after deciding I wanted that functionality, I had it. I've written Geany extensions too. Believe me, that's not something you'd do in a few minutes.
Re:A CEO's Guide to Emacs (2015) by Jenk on Monday May 09, 2022 @07:26PM (#31321234)
Just to pile on... I've been a (neo)vim user for many years now. My init.vim (previously .vimrc) file is a constant work in progress. It has become a companion. A partner. I have more backups of this file than I do of my will.

Every time I (re)turn to a language or other text-based thing, I could very easily (and often do) get sucked into a tinker-thon trying to perfect my vim experience.

I've had to accept that I just have to use the IDE du jour (or de la majorite, more accurately) to get up and running. Though you bet I'll lose some evenings to getting a vim setup working.

Re:A CEO's Guide to Emacs (2015) by ww520 on Monday May 09, 2022 @09:59PM (#31322499)
A sample usage just yesterday. I needed to rename a field name of a struct in Rust. I hit a key shortcut for lsp-rename and it renames the field plus all the references in all the files in the project. I know it's just basic refactoring and some IDE's support it, but it's generic across all languages.
Re:A CEO's Guide to Emacs (2015) by anthk on Monday May 09, 2022 @07:17PM (#31321149)
Geany doesn't have org-mode for notes/programming/workflow and zillions of more features.
Re:A CEO's Guide to Emacs (2015) by melissalobos on Monday May 09, 2022 @07:39PM (#31321364)
I really can't say I have understood, what exactly org-mode is supposed to be. I have seen the website and had an ardent fan explain it to me, but still don't get it. How is it better than having another text file open in another tab? Or using a jupyter/pluto notebook?
Re:A CEO's Guide to Emacs (2015) by rout39574 on Monday May 09, 2022 @10:14PM (#31322610)
You start with an outline.

You bolt literate programming onto it.

Then you tell your code blocks they can send input and output to each other via text in the document. Now you've got an excruciatingly well documented multi-language pipeline.

Then you get the source data for all your analyses in real time from [wherever they came from].

Then you render it _beautifully_ with your dependency graph documentation generated from graphviz (which graph data was newly inferred on this very run).

My first org-mode killer app, years and years ago was a monthly billing collection and analysis for a backup system I was running. The first pass took me a week to figure out how to collect and analyze. A few iterations later it was literally open the org-mode document and tell it "Do the thing". All my intermediate work was shown, everything was clear and open to inspection, and beautifully typeset. And I could generate it as HTML if they wanted it in a web page. (at the time they wanted PDF).

This is one of the ways org-mode is great. There are others. :)

Re:A CEO's Guide to Emacs (2015) by anthk on Tuesday May 10, 2022 @07:49AM (#31325942)
This is what I meant. Exactly this.
Re:A CEO's Guide to Emacs (2015) by BeetleB on Tuesday May 10, 2022 @12:21AM (#31323420)
> I really can't say I have understood, what exactly org-mode is supposed to be.

It's primarily two things:

1. A markup syntax

2. a TODO manager. It's flexible enough that you can come up with your own custom TODO workflows (e.g. GTD, etc). You can do queries on a fair amount of metadata to construct your TODO list.

In support of all that, it has good table features (you can do spreadsheet like functionality in them), code management (execute source code blocks similar to Jupyter, but you can have code in multiple languages communicate with one other), link to just about anything (with a bit of setup, I can even link to Outlook emails). While in the middle of your work, you can capture notes and/or TODOs and have them filed away in the appropriate file and location within that file.[1] Finally, you can export into many formats (I don't write pure LaTeX any more - I always export an org file to LaTeX).

Example of a simple thing I do.

I read an email. It contains actionable information. With a keystroke, I create a TODO item in org mode, which contains a link to the email. Later when browsing my TODOs, I have access to the context.

Likewise, I'm reading an article in Chrome/Firefox, and I want to file it away for some reason. With a click on a bookmarklet, it sends the URL and related info to Org mode in Emacs and it is filed away.

A more sophisticated example that required some elisp: I take meeting minutes at work. Any time something comes up where a TODO is assigned to a person, I hit a keystroke and type in the TODO. It finds the heading called "Action Items" for that particular meeting and files it there. At the end of the meeting, I export the minutes into HTML or Word and email it out.

Re:A CEO's Guide to Emacs (2015) by zelphirkalt on Monday May 09, 2022 @08:01PM (#31321562)
It is much more capable than the things you mentioned. It can do technical documents up to thesis writing, with citations, references both document internal and external, have code blocks, which can be run, using multiple langs per file, use output of one as input for the other, spreadsheets with a whole programming lang or GNU calc behind them, per formula of course, not only per spreadsheet, it can schedule events, it can use library of babel, it can do literate programming, ...

Need I say anything more?

Re:A CEO's Guide to Emacs (2015) by ravi-delia on Monday May 09, 2022 @07:48PM (#31321435)
Org is theoretically just a markdown format. In practice it starts out as a markdown editor with a bunch of neat features, and can become this omnibus of organization. There's a whole organizational ecosystem which uses org as a sort of lingua franca, so the more you sacrifice at its alter the more it all comes together. I use it to unify my todo list and calendar, and have it display what needs to happen both on an hour to hour level and day to day. I use it to pin emails I want to reply to with one key combo, and connect notes to each other any way I want. I have no idea if it's useful enough to justify the time I put into it. For most people, probably not. But I've gotten it to the point that it's just totally frictionless for me, and not a single other system I've ever used has been easy enough to stick to.
Re:A CEO's Guide to Emacs (2015) by User23 on Monday May 09, 2022 @07:54PM (#31321490)
You’d have to try it for yourself and see.
Re:A CEO's Guide to Emacs (2015) by ravi-delia on Monday May 09, 2022 @07:40PM (#31321371)
I can say that I went through my period of customization, and haven't spent more than ten straight minutes at a time messing with my config to get something done for at least a year. I admit to occasionally setting up something really fun and complex, particularly in my ever-growing pile of machinery around Org, but for real tasks everything just works. When I hit a pain point I might spend a minute making a simple tweak (most recently adding keybindings to deploy a small project) that just uses stuff I've made before.

There are definitely people who wind up messing around more than anything else, and people who don't blog about the work they actually do since their blog focuses on Emacs, but it isn't hard to avoid that. A new language isn't quite the one click plugin of VSCode, but with lsp-mode it's actually pretty close. Perhaps 4 lines of config, plus extra keybindings you can grow organically.

Re:A CEO's Guide to Emacs (2015) by na85 on Monday May 09, 2022 @09:15PM (#31322169)
I've always had the sense that this is a very vocal minority of emacs users, and that there's a heavy overlap with the people who, say, spend time "ricing" their i3 configs.

I spent a few tens of minutes setting up LSP for the languages I use, a few hours browsing and trying out themes, and then I maybe spend less than an hour a year on my config

Re:A CEO's Guide to Emacs (2015) by agumonkey on Monday May 09, 2022 @11:28PM (#31323111)
Everytime I think I had it with emacs config fatigue and try another editor. I realize I prefer emacs. I just tried vscode. Lots of good things but not clearer on how to get what you want. You spend time googling how and what preset to modify, it might or might not work. Their git interface is not clearer. The indentation logic is strange some times.
Re:A CEO's Guide to Emacs (2015) by achikin on Monday May 09, 2022 @07:35PM (#31321323)
I agree that setting up Emacs from scratch could be a long journey, but there are prebuilt emacs configs like Spacemacs which are even more capable than VSCode out of the box.
Re:A CEO's Guide to Emacs (2015) by anamax on Monday May 09, 2022 @08:25PM (#31321760)
Emacs has been my primary editor since it was written in Teco and only ran on PDP-10s.

I haven't had an emacs config for >25 years.

Re:A CEO's Guide to Emacs (2015) by tra3 on Monday May 09, 2022 @08:40PM (#31321882)
You’ve got incredible self control. I love turning knobs and dials and that’s basically what emacs is.
Re:A CEO's Guide to Emacs (2015) by anamax on Monday May 09, 2022 @10:07PM (#31322565)
Nope - just lazy, or I play with other knobs.

Plus, I can usually work in someone else's Emacs session and most people can work in mine. (Yes, they almost always comment on how it's odd to not have their customizations, but they're not tripped up by mine.)

Re:A CEO's Guide to Emacs (2015) by copperroof on Monday May 09, 2022 @08:16PM (#31321673)
Most of the write ups show you everything all at once. I spend maybe a minute or so a week updating or tweaking something. Over decades this is a lot of customization and If I did a write up on it it would look like a lot of work.
Re:A CEO's Guide to Emacs (2015) by gumby on Monday May 09, 2022 @08:27PM (#31321785)
> My impression after reading a lot of blogs by Emacs users is that they spend more time thinking and writing about how to make Emacs do something, than the actual thing they are doing.

Indeed, that does seem to be the community of people who blog about emacs. It's a shame because it makes emacs look complicated to the beginner.

But like many users I have a short init file with very few customizations: In my case mainly removing all the chrome and other bells and whistles so emacs looks like it did back in the 1970s. And it works great!

Re:A CEO's Guide to Emacs (2015) by mplanchard on Monday May 09, 2022 @09:56PM (#31322471)
For me it’s rather spiky, like with Linux. There will be once or twice a year I go deep in trying new configurations, messing with existing ones, and so on. The rest of the time it’s just using it.
Re:A CEO's Guide to Emacs (2015) by joeman1000 on Monday May 09, 2022 @10:07PM (#31322562)
How can you make that judgment in earnest? The posts you see are guides. No one is going to post ‘I’m doing this in emacs right now, for x hours’. How can you say people are configuring more than using, when you have no data on ‘using’? With that said I agree with the general sentiment. It does take a lot of configuring compared to some other editor. I’d say my configuring/working fraction is 0.1. Emacs rewards study though.
Re:A CEO's Guide to Emacs (2015) by ww520 on Monday May 09, 2022 @09:51PM (#31322440)
People blogging about it tend to show how to configure it. People just using it don't blog since nothing interesting to talk about when things are working great.