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
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
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 | |
Common Lisp | |
Clojure | |
Pico Lisp |
Playing around with #Emacs and DeepSeek
https://within-parens.blogspot.com/2025/04/emacs-lisp-programming-with-deepseek.html
@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
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 可能會出錯)。
但基本上沒什麼不乖的(?)地方了。
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
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.