u/daviwilSystem Craftersin r/emacs • Recommends
Creating Custom Minor Modes - Learning Emacs Lisp #7
39K subscribers • 42 videos on Hallway
Intermediate. Assumes working knowledge.
8.6K views5 years ago1 recommendation
Programming languagesTools and practiceVim, Emacs and editorsLisp and Clojure
David Wilson teaches how to create custom minor modes and hooks in Emacs Lisp.
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. Check out the show notes here: systemcrafters.cc/learning-emacs-lisp/creating-minor-modes The code for dotcrafter.el can be found here: github.com/daviwil/dotcrafter.el We cover the following topics: - Intro - What will we learn? - What is a "mode"? - Writing a basic minor mode - Example: Creating a simple minor mode from scratch - Creating a Hook - Using the define-minor-mode macro - Example: Writing real behavior for dotcrafter-mode - What's next? My Emacs configuration: config.daviwil.com/emacs My system configurations: config.daviwil.com/systems If you enjoy this series, please consider becoming a sponsor on GitHub or Patreon: - github.com/sponsors/daviwil - patreon.com/SystemCrafters You can also leave a tip via PayPal: paypal.me/daviwil Follow me on Twitter for more GNU Emacs and GNU Guix content! twitter.com/SystemCrafters Chat with the System Crafters community on Discord: discord.gg/yVD8Gx6 Check out my other video series! - Emacs From Scratch: youtube.com/watch?v=74zOY-vgkyw&list=PLEoMzSkcN8oPH1au7H6B7b… - Emacs Tips: youtube.com/watch?v=wKTKmE1wLyw&list=PLEoMzSkcN8oMHJ6Xil1Ydn… - Emacs Desktop Environment: youtube.com/watch?v=f7xB2fFk1tQ&list=PLEoMzSkcN8oNPbEMYEtswO… - Emacs IDE: youtube.com/watch?v=E-NAM9U5JYE&list=PLEoMzSkcN8oNvsrtk_iZSb… - Emacs Mail: youtube.com/watch?v=yZRyEhi4y44&list=PLEoMzSkcN8oM-kA19xOQc8… - Learning Emacs Lisp: youtube.com/watch?v=RQK_DaaX34Q&list=PLEoMzSkcN8oPQtn7FQEF3D… Music credits: Coriolis Effect by logos feat. stefsax, licensed Creative Commons 3.0 CC-BY ccmixter.org/files/mseq/26296 reNovation by airtone, licensed Creative Commons 3.0 CC-BY ccmixter.org/files/airtone/60674 ukeSounds by airtone, licensed Creative Commons 3.0 CC-BY ccmixter.org/files/airtone/32655 Between Worlds (Instrumental) by Aussens@iter, licensed Creative Commons 3.0 CC-BY ccmixter.org/files/tobias_weber/56664What people say. Recommended as a practical tutorial on writing custom Emacs minor modes.
u/daviwilSystem Craftersin r/emacs • Recommends