emacs/var/elfeed/db/data/de/de25717677133a12322d70adcfe1def580b0f79f
2022-01-03 12:49:32 -06:00

1 line
2.8 KiB
Plaintext

<p><img src="https://thumbnails.lbry.com/JJqchO3fnds" width="480" alt="thumbnail" title="Creating Custom Minor Modes - Learning Emacs Lisp #7" /></p>In this video, we'll learn how to create custom minor modes and hooks in Emacs Lisp! We'll also continue with our dotcrafter.el project by creating a minor mode that will cause our Org Mode configuration files to be automatically tangled when saved.<br /><br />Check out the show notes here: https://systemcrafters.cc/learning-emacs-lisp/creating-minor-modes<br /><br />The code for dotcrafter.el can be found here: https://github.com/daviwil/dotcrafter.el<br /><br />We cover the following topics:<br /><br />- 0:00 Intro<br />- 0:34 What will we learn?<br />- 1:53 What is a "mode"?<br />- 6:46 Writing a basic minor mode<br />- 12:44 Example: Creating a simple minor mode from scratch<br />- 22:26 Creating a Hook<br />- 25:55 Using the define-minor-mode macro<br />- 34:09 Example: Writing real behavior for dotcrafter-mode<br />- 47:39 What's next?<br /><br />My Emacs configuration: https://config.daviwil.com/emacs<br />My system configurations: https://config.daviwil.com/systems<br /><br />If you enjoy this series, please consider becoming a sponsor on GitHub or Patreon:<br /><br />- https://github.com/sponsors/daviwil<br />- https://patreon.com/SystemCrafters<br /><br />You can also leave a tip via PayPal: https://paypal.me/daviwil<br /><br />Follow me on Twitter for more GNU Emacs and GNU Guix content!<br />https://twitter.com/SystemCrafters<br /><br />Chat with the System Crafters community on Discord: https://discord.gg/yVD8Gx6<br /><br />Check out my other video series!<br /><br />- Emacs From Scratch: https://www.youtube.com/watch?v=74zOY-vgkyw&list=PLEoMzSkcN8oPH1au7H6B7bBJ4ZO7BXjSZ<br />- Emacs Tips: https://www.youtube.com/watch?v=wKTKmE1wLyw&list=PLEoMzSkcN8oMHJ6Xil1YdnYtlWd5hHZql<br />- Emacs Desktop Environment: https://www.youtube.com/watch?v=f7xB2fFk1tQ&list=PLEoMzSkcN8oNPbEMYEtswOVTvq7CVddCS<br />- Emacs IDE: https://www.youtube.com/watch?v=E-NAM9U5JYE&list=PLEoMzSkcN8oNvsrtk_iZSb94krGRofFjN<br />- Emacs Mail: https://www.youtube.com/watch?v=yZRyEhi4y44&list=PLEoMzSkcN8oM-kA19xOQc8s0gr0PpFGJQ<br />- Learning Emacs Lisp: https://www.youtube.com/watch?v=RQK_DaaX34Q&list=PLEoMzSkcN8oPQtn7FQEF3D7sroZbXuPZ7<br /><br />Music credits:<br /><br />Coriolis Effect by logos feat. stefsax, licensed Creative Commons 3.0 CC-BY http://ccmixter.org/files/mseq/26296<br />reNovation by airtone, licensed Creative Commons 3.0 CC-BY http://ccmixter.org/files/airtone/60674<br />ukeSounds by airtone, licensed Creative Commons 3.0 CC-BY http://ccmixter.org/files/airtone/32655<br />Between Worlds (Instrumental) by Aussens@iter, licensed Creative Commons 3.0 CC-BY http://ccmixter.org/files/tobias_weber/56664<br />...<br />https://www.youtube.com/watch?v=JJqchO3fnds