Let's code Emacs Lisp: creating the beginnings of a package
Вставка
- Опубліковано 17 лис 2024
- In this live-coding session, we'll begin creating a package. The idea behind the package is to easily display and create reference cards in a temporary buffer. As I'm coding, I'm learning about interactive mode, creating windows and buffers programmatically, keymaps, and more.
It had been a while since I recorded one of these videos and I didn't have the aspect ratio of my Emacs window quite right-thus the blank space on the right. I'll try to remember this next time and have the Emacs window fill the entire screen.
Note that this isn't a tutorial necessarily as I'm learning as I'm going. Instead, this is a look inside the process I use to learn new concepts and put them into practice.
Let me know if you'd like to see more of this type of video!
#emacs #lisp #programming #livecoding
Interested in #elixir or #phoenix? Buy my book, Phoenix in Action at phoenixinaction....
My video course covering Elixir, Phoenix, and LiveView: BuildItWithPho...
I didn't expect that someone would share an Emacs Lisp live coding session on UA-cam. Thanks for uploading this!
You are very welcome! I hope it was informative or at least entertaining. 😆
I haven't coded lisp in decades. My first LISP project was an extension to Autocad 9 to perform intelligent routing of cables in a construction environment. Later on I used LISP as a display list manager in a graphics program. Brings back memories.
Nice! I'm still relatively new to it but really enjoy it.
Loved this, would love to see more of you coding. Loved your style.
Thanks for letting me know! I'd love to do more of these (and some with Elixir and Phoenix) in the future and it's good to know that at least one person likes this style. 😆
@@geolessel I’m sure I’m not the only one. Have a great week !
This comes just in time for me to write an Emacs package I've been thinking about.
Great! Glad to hear it. What kind of package would it be?
@@geolessel I wrote a simple Elixir app that grabs SCP Foundation articles and stores them locally to build a catalog. The idea is to write a package to communicate with that service so I can read SCP Foundation articles on demand from Emacs. Quite niche and I know I could do it all from Emacs, but I also wanted to practice Elixir.
newbie to elisp, but i suspect you might enjoy some kind of strict parens mode, or at least something that auto closes your parens!
Hi and thanks for the suggestion! I actually have an easily-accessed preference in a hydra to turn `electric-pair` on or off. Sometimes I find it really distracts me when things are added to the screen that I didn't actually type so a lot of the times I keep it off.
Hi! Video is super. I think, that in the refcard-cards-directory defnition better use (f-join user-emacs-directory "refcards"), and then need (require 'f)
Let's build an model airplane.
Goes staright to building the space shuttle, because you know, all beginners need to build a space shuttle, eventually. :))
Audio is left channel only. Great video otherwise.
Oh no! Shoot, I hate that. I'll try to upload a mono/fixed version soon. Thanks for letting me know.
@@geolessel Keep doing what you do. Loved the video.
How many ears do you need to hear it?...
@@deang5622 Just one! But it needs to be the *correct* one. lol
@@geolessel
here's the same video with fixed audio (remove spaces)
ht tps://you tu. be/wOqM 4z2aKvc
created with the following ffmpeg call:
ffmpeg -hide_banner -i original_video.mp4 -map_channel 0.1.0 -c:v copy output_mono_video.mp4
😂 失踪人口回归 支持🎉