9 comments

[ 2.9 ms ] story [ 35.9 ms ] thread
Neat. As a Claude Code plan user can I use this ? I've never tried the API access method.

Claude is remarkably effective at writing elisp I surprisingly found. I had it whip up a mode today for something today (Notation3/N3 RDF triples) complete with etags support, etc. and it just... did it.

Clever name. For thos curious Efrit is Genie in Arabic and possibly the same in neighboring languages such as Persian and Turkish..
I managed to get this working with gemini by using a proxy [1] and the following config (I used quelpa)

    (use-package efrit
    :quelpa (efrit :fetcher git :repo "steveyegge/efrit")
    :init
    (setq efrit-model "gemini-2.5-pro")
    ;; (setq efrit-api-url "https://generativelanguage.googleapis.com/v1beta/opena
    (setq efrit-api-url "http://127.0.0.1:8089/v1/messages")
    :config (defun efrit--get-api-key () (key-from-file "~/.keys/gemini.txt")) ; this isn't needed, it's set by the proxy
    :ensure t)
I needed to remove the uvicorn version constraint when importing the project to uv to get it to find a version solution.

Initially I thought you could send it directly to Gemini but apparently you need to proxy and translate the responses.

[1] Seems sketchy, use at your risk: https://github.com/coffeegrind123/gemini-for-claude-code

I wonder if this could be updated to use OpenRouter in a similar way to Emigo[1] was aiming to do.

(I use the past tense, because Emigo has not been updated in a quarter of a year, which seems as if it may as well be decades in the timeline of this sort of stuff.)

[1] https://github.com/MatthewZMD/emigo

I'm fascinated by this and the recent claude-code-ide package: https://github.com/manzaltu/claude-code-ide.el

But, I cannot seem to get past this error when I run claude-code-ide: "Symbol’s function definition is void: project-root" I know this is defined in project.el, but claude has been surprisingly unhelpful at fixing this issue.

I'm feeling a bit frustrated by the state of emacs packages lately. I've used emacs for 30 years and it feels like things are getting worse.

My guess is that you're not in a project when you're opening claude? Easiest way for it to detect a project would be having a file or dired buffer open in something managed by git.
It appears to have a feature overlap with gptel; would be nice to highlight the differences.
Off topic but without going RTFM, is there a guide that goes through setting up emacs 'with the modern way'? I have done it before but in a mish-mash way where I want something that tells how to go from configuring comp-speed, elpaca, eglot, auto treesitter etc
Once emacs starts modifying its own lisp haven’t we unleashed agi?