Hacker News new | ask | show | jobs
by michael-ax 1632 days ago
I'm in the middle of redoing my 5 yo config from the ground up for emacs'29 to take advantage of byte code compilation* -- and there's a lot happening in that accessibility of features space!

there are new better completion frameworks and new better ways of handling, thinking about and using key-maps .. so it look as if we're just one breakthrough away from having keymaps and menus attain some kind of parity with what M-x and M-: can deliver.

my emacs, being more of a computing environment than an editor, had 11 k org'd loc. I'm dumping that for small elisp files editable with outshine so i can nimbly add customizations to these menus and the other three dozen breakthrough (for me) packages that have appeared over the last few years.

this is all very exciting!

2 comments

Can you give a bit more detail on the byte code compiler and autocompletes you're looking at? I've not redone my .emacs since 2011...
https://www.ruiying.online/post/2021-07-02-install-and-use-e...

The byte code compiler uses gccjit to compile elisp to elf files. That, in conjunction with the use of libjansson for json handling, makes emacs substantially, noticeably faster for lsp (language server protocol, which most editors at least have support for now).

If you haven't looked at lsp yet either, I'd highly recommend it. It provides a common set of language server apis so you can have a unified completion experience between languages. I can remember all the unpleasant tricks to getting jedi mode for python, meghanada for Java, and having to memorize two totally separate apis. This is so much nicer.

What are the new better completion frameworks? And in contrast to which older one? (Asking as a helm user.)
The newest kid on the block is vertico - commonly used together with consult, embark, marginalia, and orderless to replace helm or ivy.
It feels so weird seeing my packages mentioned on Hacker News! (I wrote embark and orderless and cowrote marginalia.)
I only got into Emacs last year or so, but I’ve never used anything but company-mode. I’m also curious if this is what they are talking about or if there’s something else I’m missing.
They are talking about frameworks leveraging and extending the builtin Emacs completition mechanism [1]. The most well known ones are Ivy and Helm, I believe, but there are now many others.

[1] https://www.gnu.org/software/emacs/manual/html_node/elisp/Co...

I realized this after it was too late to edit my comment. Apparently a year of using Emacs is not enough to stop confusing “completion” and “auto-completion” in my head..