Hacker News

What's new in Emacs 31.1

97 points by geospeck ago | 19 comments

kstrauser |next [-]

Between treesitter and eglot (read: LSP), there’s not much from other editors I miss when using Emacs. I’ve been on a Zed kick for a while but I hear the call of the GNU. This may be the week I declare .emacs bankruptcy and start again with a clean setup, seeing how much of my old third-party config I can replace with builtins.

mickeyp |root |parent |next [-]

AI is very good at Emacs Lisp - esp GPT. So you'll have an easier time around today!

wmedrano |root |parent |previous [-]

Are there any Zed features you're going to miss? Is the AI notable?

kstrauser |root |parent [-]

Not really, no. Zed’s a fine editor and I have nothing but good to say about it. I just happen to prefer Emacs more. Its keystrokes are burned into my muscle memory. And because its config files are literally executable code, there’s nothing too crazy for Emacs. Can it do XYZ? Absolutely, if you tell it to!

As to AI: Emacs continues to have zero built in. If you like it, though, it supports any agent you might want to use. I was highly amused the first time I wanted to use my own company’s agent and found it was already well-supported by a popular package.

And honestly, Emacs + a coding agent = magic for anyone who wanted to use it but was intimidated by Elisp. “Hey Droid, tell Emacs to swap the command and option keys on my Mac.” “Ok, done!” It’s a ludicrously powerful combo.

rtpg |next |previous [-]

Bit of a tangent but does anyone have good learning materials on doing things with Emacs Lisp beyond just staring at the source of packages?

I have the Mastering Emacs book and read through most of it, which gives me a good idea for some stuff... but I really would like to have good ideas for the right kind of design patterns for common things.

rootnod3 |root |parent |next [-]

All of Prot's packages[1] are really nicely designed imho.

[1]: https://protesilaos.com/emacs/

sph |root |parent [-]

He’s also got a Youtube channel if you prefer to learn that way.

rootnod3 |root |parent [-]

And coachings!

MarsIronPI |root |parent |next |previous [-]

Have you read through the Emacs Lisp Intro and Elisp manuals in Info? The latter is especially helpful as a reference.

wmedrano |root |parent |previous [-]

I started getting a little more into ELisp after reading The Land of Lisp, though its probably a bit basic. If I were to try to get better at ELisp through reading books/docs, I'd look into Common Lisp material.

CodeCompost |next |previous [-]

The section under "User Lisp Directory" seems incomplete. I was expecting a second paragraph.

brabel |root |parent [-]

I thought the same, but later on in the article they go into more details and explain that lisp files under that directory will be auto loaded and commands they add should just work! Really good stuff.

wmedrano |next |previous [-]

I'm excited for the user-lisp/ changes. It'll let me create custom lightweight packages and have them lazily loaded by just sprinkling ;;;###autoload over interactive commands and modes.

Quitschquat |next |previous [-]

Anyone know if Zaretskii resigned over the portable dumper?

vocx2tx |root |parent [-]

He's in the MAINTAINERS file[0], and the person with the most commits in 2016-2026 period, so no.

[0] https://github.com/emacs-mirror/emacs/blob/master/admin/MAIN...

pkal |next |previous [-]

I was annoyed by some of the comments in the "Packages" section, because it is clear that the author didn't try anything out but just scattered a few comments though out the file.

Regarding :vc and :load-path, this was obsoleted transitively due to the obsoleting of package-vc-install-from-checkout, which has portability issues. Bug#80604 goes into the background for this. This is NOT an obsoletion of the :vc keyword for use-package.

Regarding package-autosuggest, this is disabled because it doesn't interest most users. It is targeted at new users who aren't familiar with the packages, and might be interested in new major modes. Experienced users are generally either familiar with the packages and use them or prefer to stay in fundamental mode. The minor mode is enabled as part of the newcomers theme!

No mention of package-review-policy, which especially in the "age of AI" is an important feature is you want to be careful about external code you are using on your system.

Oh and on the topic of the newercomers theme, the reason it is not mentioned "higher up" in the NEWS file, besides it being the wrong section, is that it is highlighted on the splash screen, where new users are going to find it, instead of a NEWS file.

mickeyp |root |parent [-]

But I do test things out, by virtue of often running the tip of master branch and submitting bug reports. But I cannot test every mention in the NEWS, so on that part you are right.

Deprecating :vc + :load-path without expressing why is a curious oversight. And "portability issues" is all fine and good, but why embed custom git clone + build grammar code in the treesit.el file if VC checkout portability is a concern? Surely VC is better at it than a bunch of brittle string concat code in treesit.el I do not understand why one part works and another supposedly does not.

The change is especially infuriating as for most of us it actually worked fine, and user-lisp directory does not solve the retrieval and setup problem, which `use-package` for all its flaws at least standardises.

Most users probably do care about discoverability of related packages, existing user or not. But that's in the eye of the beholder.

`package-review-policy` is security kabuki theatre. Someone who wants to harm an Emacs user can find many other ways of doing so with or without this flag.

hirvi74 |previous [-]

I hope my Treesitter issue has been fixed with macOS. I gave up on the problem about this time last year.

By installing the grammars on the user's behalf, I think I might be in luck!

I don't remember the exact issue, but I remember having to dig through the release histories of each of the poorly documented ABI version for each language to find whichever versions was compatible.

I've got my fingers crossed.

mickeyp |root |parent [-]

My Combobulate page has suggested package versions but note I have not yet confirmed 100% compatibility with every single Emacs 31.1 major mode yet, though all tests for Combobulate do pass in 31

github.com/mickeynp/combobulate