emacs

Zach 2024-12-01T04:50:07.218479Z

Anyone know how to visually align multi line strings?

2024-12-02T12:32:45.207849Z

I'm not sure there is an easy way, but one way could be to extend the reader for example, like :

(ns my-reader-tags
   (:require [clojure.string :as str]))

(defn read-multi-line-string-tag [multi-line-str-vec]
  (str/join "\n" multi-line-str-vec))
and then on your data_readers.clj
{multi-line-str my-reader-tags/read-multi-line-string-tag}
which you can then use like :
(def ml
  #multi-line-str
  ["This is a"
   "multi line string"])

user> ml
"This is a\nmulti line string"

anselm 2024-12-01T07:55:56.319029Z

Hey, if anyone’s interested: I’ve started work on cursorai-like features for emacs with https://github.com/AnselmC/le-gpt.el. It’s a fork of gpt.el that brings: • completion-at-point • region transforms • selection of project files for context (More to follow soon) Happy for feedback or contributions :)

👍 3
👀 3
🔥 1
🤘 1
🤘🏼 1
anselm 2024-12-15T18:13:29.737099Z

@zikajk true, done

anselm 2025-01-25T19:53:23.734159Z

@zikajk btw I've now added deepseek support

👍 1
Andrea 2024-12-07T01:21:06.451289Z

oh nice! Curious about your todo: Ability to let GPT decide which context files it needs!! Also I may be misunderstanding, but adding project files to the context will not risk to fill the context window? Doesn't that makes the LLM become less precise as well (afaik beginning and end of context are used better than what is in the middle)? How does it work in your usage?

anselm 2024-12-08T12:48:42.904569Z

Currently the context window for claude is about https://support.anthropic.com/en/articles/7996856-what-is-the-maximum-prompt-length pages, for chatgpt it's a bit more than https://platform.openai.com/docs/models/gp. So far I haven't had to use that many project files to provide enough context to get meaningful responses. I've been using it to build a project with #biff, and it's working incredibly well. I generally provide the database schema as context and then either some example files (e.g., the source code file if I want to generate a test for it or some file highlighting some similar functionality). It's also a blaze for writing UI components with hiccup. The ability to let gpt decide which context files it needs would just speed up the process. The idea would be to first send a request with all available context files and the query it needs to answer and to ask it which context files it needs to provide the best possible answer.

🙏 1
Akiz 2024-12-09T07:34:12.289509Z

would it be possible to add support for other providers like gpt-el offers? I personally use DeepSeek and would like to see if this lib would suit me better than other similar tools (Aider, Elysium).

anselm 2024-12-09T07:56:15.192549Z

Yeah sure. Can you open an issue and I’ll look into adding it?

👍 1
Akiz 2024-12-14T16:34:36.596829Z

@anselm.coogan I think you have to enable Issues

Juλian (he/him) 2024-12-01T20:51:04.843259Z

Finished upgrading my DevTerm to Raspberry Pi CM4, and setting up my Emacs. Don't know if I'll really use the cool-retro-term, though, but it does look cool 😎

🆒 3
4