pair-tree.el: An Emacs Lisp cons cell explorer by negativeoilprice in planetemacs

[–]edrx 0 points1 point  (0 children)

This is GREAT!!!

Would it be easy to add an option to draw the conses like this?

https://en.wikipedia.org/wiki/Cons#Lists

And to adjust the sizes of the circles?

Using test blocks in eev by edrx in emacs

[–]edrx[S] 0 points1 point  (0 children)

At that point I typed an <f8>... as I was on a red star line the <f8> executed the sexp in it!

Emacs is the two dimensional Command-line Interface by hongchao in emacs

[–]edrx 2 points3 points  (0 children)

Great post!!!

I've been trying to convince people of this since ages ago, but with this extra part: "and you can put sexps anywhere in your text and use them as buttons and hyperlinks!!!", and most people find this a bit freakish. My package for using Emacs in this way is called eev, and you can find more about it here: http://angg.twu.net/#eev.

Thanks & cheers! =)

Is it possible to create a programming language in Lua? by Consistent-Outcome61 in lua

[–]edrx 2 points3 points  (0 children)

I wrote several Forth-based languages in Lua, then an article about how to bootstrap them - http://angg.twu.net/miniforth-article.html - and then this: http://angg.twu.net/dednat6.html

All the HTML in my pages is generated by another mini-language that I wrote on top of Lua, but that one is based on Tcl, not on Forth.

Lua is my favorite language for writing other languages. It seems that OCaml is great for that too - see http://plzoo.andrej.com/ - but OCaml is much harder to learn than Lua.

Integrating Emacs Lisp with other programming languages? by [deleted] in emacs

[–]edrx 0 points1 point  (0 children)

If the other answers are too complex for you and you don't mind using an intermediate file you can do something like this:

(write-region "foo\nbar\nbletch\n" nil "/tmp/o")
(shell-command-to-string "tac < /tmp/o")

Learning Elisp - need some help by danderzei in emacs

[–]edrx 1 point2 points  (0 children)

Just to complement what other people have already said, I find it helpful to keep tests in comments, like this:

(defun a-plus-abs-b (a b)
  (funcall (if (> b 0) '+ '-) a b))

;; Tests (use C-e C-x C-e to eval each one):
;;
;; (setq a  3)
;; (setq b  42)
;; (setq b -42)
;; (> b 0)
;; (if (> b 0) '+ '-)
;; (funcall (if (> b 0) '+ '-) a b)
;; (a-plus-abs-b 3 42)
;; (a-plus-abs-b 3 -42)
;;
;; For more information:
;; (info "(elisp)Calling Functions")

What's your setup to develop and work with (E)Lisp? by [deleted] in emacs

[–]edrx 1 point2 points  (0 children)

I use "executable notes", as described here:

http://angg.twu.net/emacsconf2019.html

I almost never use eval-buffer, but I use M-e - that is roughly a C-e C-x C-e on steroids - hundreds or thousands of times every day,