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...

КОМЕНТАРІ • 21

  • @okawashingo2079
    @okawashingo2079 2 роки тому +7

    I didn't expect that someone would share an Emacs Lisp live coding session on UA-cam. Thanks for uploading this!

    • @geolessel
      @geolessel  2 роки тому +1

      You are very welcome! I hope it was informative or at least entertaining. 😆

  • @rrmackay
    @rrmackay 2 роки тому +2

    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.

    • @geolessel
      @geolessel  2 роки тому

      Nice! I'm still relatively new to it but really enjoy it.

  • @driden1987
    @driden1987 2 роки тому +1

    Loved this, would love to see more of you coding. Loved your style.

    • @geolessel
      @geolessel  2 роки тому +1

      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. 😆

    • @driden1987
      @driden1987 2 роки тому

      @@geolessel I’m sure I’m not the only one. Have a great week !

  • @pointerish
    @pointerish 2 роки тому +1

    This comes just in time for me to write an Emacs package I've been thinking about.

    • @geolessel
      @geolessel  2 роки тому +1

      Great! Glad to hear it. What kind of package would it be?

    • @pointerish
      @pointerish 2 роки тому

      @@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.

  • @DrewIsFail
    @DrewIsFail 2 роки тому +2

    newbie to elisp, but i suspect you might enjoy some kind of strict parens mode, or at least something that auto closes your parens!

    • @geolessel
      @geolessel  2 роки тому +1

      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.

  • @semninrussia
    @semninrussia 2 роки тому

    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)

  • @AbaseenPodcast
    @AbaseenPodcast 2 роки тому

    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. :))

  • @FrethKindheart
    @FrethKindheart 2 роки тому +6

    Audio is left channel only. Great video otherwise.

    • @geolessel
      @geolessel  2 роки тому +5

      Oh no! Shoot, I hate that. I'll try to upload a mono/fixed version soon. Thanks for letting me know.

    • @FrethKindheart
      @FrethKindheart 2 роки тому +2

      @@geolessel Keep doing what you do. Loved the video.

    • @deang5622
      @deang5622 2 роки тому

      How many ears do you need to hear it?...

    • @geolessel
      @geolessel  2 роки тому

      @@deang5622 Just one! But it needs to be the *correct* one. lol

    • @ozzloy
      @ozzloy 2 роки тому

      @@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

  • @reguardtoo
    @reguardtoo 2 роки тому

    😂 失踪人口回归 支持🎉