TURNS OUT that if you look carefully at the debugger in the *Backtrace* buffer after you make a mistake in Emacs lisp, it TURNS OUT that you can find your dumb mistake where you used the wrong goddam type

#emacs #elisp #emacslisp

I wonder how difficult it would be to introduce rudimentary namespaces into #elisp.

#emacs

Outside of #emacs #elisp, what is your favorite #lisp to work in for personal projects?

Please let me know in the replies what implementation do you like/use? Or if you use something less common.

#scheme #racket #clojure #commonlisp #programming

Scheme
Common Lisp
Clojure
Pico Lisp
Poll ends at .
Emacs Lisp Programming with DeepSeek: A New Widget

The Emacs widget library is useful; alas its guts are ... semi-documented and most of its inner working a bit mysterious. I wanted a column...

@lemgandi I make #Emacs autostart the daemon if it isn't running - it sends a notification too. All written in #Elisp.

@iacore
at the moment, I'm just writing knowledgebases and actions, where actions are either lisp or scripts of other or primitive actions. Sofaras not-emacs, I am planning to use @akater's https://framagit.org/akater/cl-el/-/blob/master/el.org #commonLisp #elisp.

I'm really still just #dogfooding #softwareIndividuals rn. But situations [H (succ .s [paint :obj .h :as .c]) (color: .h) .c] (Holds) in the situation that normally results from the action of painting the object h with the color c, the color of h will be c
@ksaj

el.org · master · akater / cl-el · GitLab

Execute Emacs Lisp in Common Lisp. The system provides a dedicated package EL (EMACS-LISP), and some definitions. [This description has been SEOed a little]

GitLab

https://www.perplexity.ai/search/i-wish-to-have-a-elisp-functio-.H0qDKViR.27dCZILcH_5w

忘了分享這則對話。

基本上我要它做一個 interactive function 給我,能夠吃 "ghq list -p" 然後然我以 fuzzy search 的方式選一個路徑,然後要用 magit 去打開我所選的路徑。

基本上第一個答案給的就已經是可動而且是 minimum implementation,沒有依賴如 ivy 或 helm 等外部的函式庫。

fuzzy search 的部分是中途增加的,也是沒有是使用外部函式庫。

我後來手動把這段

(split-string (shell-command-to-string "ghq list -p") "\n" t)

調爲

(process-lines "ghq" "list" "-p")

主要是 error handling 較好 (shell command 可能會出錯)。

但基本上沒什麼不乖的(?)地方了。

#emacs #elisp #magit #ghq

I forgot the semantics of elisp defvar and defparameter but I think you could emulate react + useState for free in any elisp buffer

https://gist.github.com/jnpn/6dd1db0032467f1390e90d592294ee20

#emacs #react #elisp #state

elisp can react...

elisp can react... GitHub Gist: instantly share code, notes, and snippets.

Gist
Just a snippet of elisp, that I thought may save some time.

I'm sure there's better/ more elegant ways of doing this, but jank that works is jank that works.

https://bajsicki.com/blog/elisp-neat-tree/

#emacs #elisp
Neat trees from org-ql to org-mode - phil@bajsicki:~$

Over the past few weeks I’ve been working on a rather large inventory of items stored and held in org-mode. For the purposes of this example, let’s use the current buffer, bajsicki.com.org I started using org-ql to grab the data I need, in the form of: (let ((org-ql-cache (make-hash-table))) (org-ql-select "bajsicki.com.org" '(tags-local "@emacs") :action (lambda () (org-get-outline-path t)))) So, this is neat. But notice how it’s a list of lists, and there’s a lot of repetition.

Spent spring break hacking on an #Emacs extension to make it easier to fuck around with #ChatGPT and its ilk from inside the editor. There's a bunch of better extensions out there already, but sharing in case other folks are also trying to fuck around with these things and want add a shitty #elisp hack by a rando into their .emacs file. https://github.com/igb/llmacs
GitHub - igb/llmacs: An Emacs extension to communicate with ChatGPT.

An Emacs extension to communicate with ChatGPT. Contribute to igb/llmacs development by creating an account on GitHub.

GitHub