Live data from Hacker News

Emacs: The Editor for the Next Forty Years [video]

media.emacsconf.org

131–140 of 272 posts

Re: Emacs: The Editor for the Next Forty Years [video]

#131

As an emacs user I like the little rant about keyboards towards the end (54:27). It's stupid hard to find a laptop with good keys, good layout, good internals, and good battery.

Get a Thinkpad, remap the keys in software and never look down again.

Re: Emacs: The Editor for the Next Forty Years [video]

#132
post #22

Earlier quoted context omitted.

Different editors have different patterns of usage. I find I roughly speaking never duplicate lines, so why would this be a problem?

I constantly find myself duplicate lines in vim (shift+y). You've never had to edit a line that's really similar to another? Or when debugging, I don't want to change the old code, so I copy the line, comment it out, and work with the duplicated line. You've never had to do that?

You do it because it's so easy :)

I say that as a Vim user that duplicates lines constantly. Vim definitely changes your coding patterns; for better or worse because it can be soo frictionless.

Re: Emacs: The Editor for the Next Forty Years [video]

#133
post #103
post #2

Oh Emacs. A graybeard I respect got me to try it about 5 years ago. I used to walk by his machine and think "wow, in a movie about a hacker, this is what their computer screen would look like". I also thought Magit was pretty damn cool because it made interacting with Git extremely intuitive (once you're comfortable with Emacs). In the years since first picking up Emacs, I have probably spent 100 hours or more config…

I've been using Emacs for 40 years. My .emacs file is 59 lines long. Most of the customizations turn off features have been added (menu bars and so forth), or that disable "helpful brain damage" that simply got in the way. I've spent 2-3 hours over the last decade tweaking things.

At the risk of adding to your 2-3 hours, you might want to check out Key Chord [0] (if you don't use it already) for some low-hanging fruit.

[0] - https://www.emacswiki.org/emacs/KeyChord

Re: Emacs: The Editor for the Next Forty Years [video]

#134

Emacs - the editor that STILL doesn't have a simple way to duplicate the current line?

Triple click the line, then middle click somewhere. Or ctrl a ctrl k ctrl k ctrl y (move) ctrl y. Is it really something that’s so common that it needs a command?

duplicate function declaration or code chunk; comment out old and modify new; leave old inline until you're happy with new and verified existing functionality isn't lost. Super useful working pattern I think that I use constantly. If it was more than `V p` Maybe i wouldn't work like that; but I do because it is so frictionless.

The more I use Git the more I've been committing/diffing for similar effect; but it's still much more overhead for smaller checks.

Re: Emacs: The Editor for the Next Forty Years [video]

#135

Earlier quoted context omitted.

Coincidentally, I quit java for almost the same reason.

Really? What languages have better IDE support than Java? I guess C#?

It was more abandonding languages that are a slog to write without somewhat advanced IDE tooling. Committing thousands of lines per PR was common for the typical Java project, and much of had to be aided by IDE tooling to keep your sanity. I'm sure there's some amount of plugins I can throw at emacs or vim to get good-enough Java assistance or I can use languages with a higher productivity-to-lines of code ratio.

Re: Emacs: The Editor for the Next Forty Years [video]

#136

Fabric Bellard’s ema s port (QEmacs): https://bellard.org/qemacs/ It’s amazing how fast it is. Unfortunately it is not fully compatible and missing many features.

that's 150kb! and already addresses html/css which the author was complaining about...

Re: Emacs: The Editor for the Next Forty Years [video]

#137
post #78
post #47

I really started to get lost when he started talking about never wanting to leave his text editor, wanting to read his emails in Emacs, browse the web in Emacs, have slack and discord in Emacs, etc. Serious question: Why? Is it that hard to alt+tab? Especially, why would you want such distracting features inside your editor, while you are trying to focus and work?

> Is it that hard to alt+tab? incidentally, alt+tab is broken on MacOs. It cycles between programs, not windows - so if you have mutiple terminal windows open, you're screwed. You can use the alternative alt+` to cycle between windows of the same app, but that doesn't go to the least recently used window, but cycles through them in order - which is also useless when having many terminals open. Then you can pay like 1…

Not exactly what your asked for, but this is what I do:

System Preferences -> Keyboard -> Shortcuts -> Mission Control:

Set "Move left a space" to: Control + 9

Set "Move right a space" to: Control + 0

System Preferences -> Keyboard -> Keyboard -> Modifier Keys...

Set "Caps Lock" key to: Control

Re: Emacs: The Editor for the Next Forty Years [video]

#138
post #59

Earlier quoted context omitted.

> Emacs does not require constant tweaking and wasting time on configuration. Unless you are using org-mode, in which case updating org-mode may cause issues that require reading up on the breaking changes that were introduced between org-mode versions. (This is meant as a heads up for newcomers using org-mode, since it's pretty popular at this point.)

Upgrading org-mode should count as tweaking the config. Is there any part of org-mode that stopped working suddenly?

I've been using org-mode for about a decade now, and while I know there were changes made, I don't think there was even a single thing that just stopped working under me during the upgrade. I have a somewhat nontrivial amount of org setup, and there was never a case I'd have to fix anything in it after upgrade.

Re: Emacs: The Editor for the Next Forty Years [video]

#139
post #78
post #47

I really started to get lost when he started talking about never wanting to leave his text editor, wanting to read his emails in Emacs, browse the web in Emacs, have slack and discord in Emacs, etc. Serious question: Why? Is it that hard to alt+tab? Especially, why would you want such distracting features inside your editor, while you are trying to focus and work?

> Is it that hard to alt+tab? incidentally, alt+tab is broken on MacOs. It cycles between programs, not windows - so if you have mutiple terminal windows open, you're screwed. You can use the alternative alt+` to cycle between windows of the same app, but that doesn't go to the least recently used window, but cycles through them in order - which is also useless when having many terminals open. Then you can pay like 1…

I don't get where that is broken.

Re: Emacs: The Editor for the Next Forty Years [video]

#140
If Emacs is to be "the" editor for the next forty years, I really hope it can better combat random hangs. As someone who uses Emacs as a daily driver and loves it to death for its extensibility paradigm it's painful when it maxes out the CPU, I have to restart and have no idea what it could have been.

But then again scripting languages don't really have these interruption features by design. I'm developing something with a scripting layer and occasionally come across accidental infinite loops myself. I wonder what e.g. Factorio or Minecraft do if a mod enters an infinite loop. If the answer is "program more carefully" and "don't use badly coded mods" then I guess it can't be helped.

Proper concurrency in elisp can't come fast enough. At least then we could have a task manager to kill hung threads with.

Post reply on HN