Live data from Hacker News

Ask HN: If you were rewriting Emacs from scratch, what would you do differently?

news.ycombinator.com

91–100 of 340 posts

Re: Ask HN: If you were rewriting Emacs from scratch, what would you do differently?

#91
post #86
post #34

Earlier quoted context omitted.

Parentheses scare away anyone who shouts "bro!" and fist-bumps each other, before they can insist "the first thing Emacs needs is a package manager, to hide code as much as possible from casual users" (missing half the point of Emacs).

Emacs has a package manager...

And consequently a lot more friction to users becoming extenders.

Re: Ask HN: If you were rewriting Emacs from scratch, what would you do differently?

#92
I like emacs for its flexibility and its ability to be a platform for people to build just about any extension. So for this you'd need a solid scripting language. I was never sold on Lisp but it's fine. I'd prefer to see lua; it just makes more sense.

The repo-reference stuff works pretty well all things considered. If it were python it would be hell.

Crazy side of me would like to see it fully written in a safe(r) language like rust, swift or zig. Basically your config would be a recompiled subsystem, loaded at runtime, or you'd recompile the whole editor.

It wouldn't hurt if the config had a bit more structure. Forcing people to set fonts etc. BEFORE loading other things; essentially enforcing an order in which things get loaded. It can get hairy after years of working in emacs.

I love that it's keyboard driven and I'd keep that for sure.

The config should automatically be a git repository and any change should generate a meaningful commit (thinking out loud).

Better key handling and none c-x nonsense. Switching between keyboard combos and straight up shortcut should be a defined choice not overwritten by x. Every 'plugins' should expose their shortcuts override clearly. Have sane defaults that aren't 30 years of cruft. This means you'd have to consider running on mac just as well as windows, and in and out of the terminal makes this extremely tricky.

Better plugin system and discovery. Often the best and only way to find how to solve a problem in emacs was by finding some random gray-beard post on some forum by sheer luck.

Re: Ask HN: If you were rewriting Emacs from scratch, what would you do differently?

#93
post #28

Don't use lisp. Normal people don't like it, it looks weird. I wonder how many projects failed because they were lisp. Normal people: Visits a project page. Sees it's a lisp. Closes page.

And how would that make emacs better?

Re: Ask HN: If you were rewriting Emacs from scratch, what would you do differently?

#95
post #37
post #32

Allow for user controllable window layout within the frame, objectively the editor's only significant drawback.

god yes please. "Will I get a new window? If so, where will it be?" If I could have Emacs with Acme-style window management, that'd be perfect

this is emacs territory so we have infinite customization via the `display-buffer` primitive.

see https://www.masteringemacs.org/article/demystifying-emacs-wi... for more information.

Re: Ask HN: If you were rewriting Emacs from scratch, what would you do differently?

#96
post #30
post #12

Earlier quoted context omitted.

Make CapsLock an additional Ctrl. On many old keyboards that is where the Ctrl key was positioned [1]. [1] https://en.m.wikipedia.org/wiki/Caps_Lock#Placement

I know many people like to remap Caps Lock to function as Ctrl. However that setup does not quite work for me. There is only one Caps Lock key on the left side of the keyboard. I need Ctrl on both sides of the keyboard, so that I can use the left Ctrl key while typing Ctrl+P but the right one while typing Ctrl+A. There are other options as well, like remapping the Enter key to act as Ctrl when chorded or using sticky…

For the past 3 years I’ve done the following remap Caps -> lctrl/esc, enter -> rctrl/enter, tab -> lalt/tab, backslash -> ralt/ backslash. Also have the physical right alt mapped to multi key/dead greek.

It works really well, and makes emacs much more comfortable to type in.

Downside is this keeps me locked to X11 and fighting the occasional app that reads the key codes directly.

Re: Ask HN: If you were rewriting Emacs from scratch, what would you do differently?

#97
post #21

The core should be in rust, verfied in lean, and the runtime should be in guile. Literate programming in org-mode should be a hard requirement. Package management should require patch algebra. Macros should be submitted to a leaderboard in a blockchain and yield flair in EUDC. M-x measure-beard-length should require 10000 hours of logged usage and unlock the major mode infinity-categorization. Tongue-no-longer-in-che…

> beard length is gendered you insensitive clod https://www.gocomics.com/calvinandhobbes/1986/02/14

Yes

Re: Ask HN: If you were rewriting Emacs from scratch, what would you do differently?

#98
One thing about Emacs, is it's not really just an editor anymore. Comparing it to other editors kind of misses the mark. It's more like an integrated Lisp development and runtime environment. It reminds me of Smalltalk environments, say Squeak or Pharo, albeit in a very text oriented way.

The world could probably make room for an integrated Lisp development environment that makes GUI programming more of a first class citizen. Maybe something like Medley Interlisp?

Re: Ask HN: If you were rewriting Emacs from scratch, what would you do differently?

#99

The core should be in rust, verfied in lean, and the runtime should be in guile. Literate programming in org-mode should be a hard requirement. Package management should require patch algebra. Macros should be submitted to a leaderboard in a blockchain and yield flair in EUDC. M-x measure-beard-length should require 10000 hours of logged usage and unlock the major mode infinity-categorization. Tongue-no-longer-in-che…

relevant: https://github.com/remacs/remacs#rust-heart-emacs although as of this message it says they've given up in favor of https://github.com/emacs-ng/emacs-ng#contributing which does mention Rust but seems to be ... a lot different from Emacs so I guess they're really going all-in on the "NG" part

for the non-tongue-in-cheek, also relevant: https://www.emacswiki.org/emacs/GuileEmacs#h5o-2

Re: Ask HN: If you were rewriting Emacs from scratch, what would you do differently?

#100
post #73

Earlier quoted context omitted.

For instant startup I recommend daemon mode and emacsclient. Start emacs via emacs --daemon, open windows (in the terminal or otherwise) via `emacsclient` / `emacsclient -nc` (I use aliases for these).

Yep, warm start is the only way to go unfortunately. But I want a fast start from cold boot like classic vi.

I think running daemon mode has significant advantages. You can have frames running on multiple virtual desktops for different uses. You can also step away from a buffer, and return to it, maybe from some other location on a different computer.
Post reply on HN