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

1 line
3.2 KiB
Plaintext

<p><img src="https://thumbnails.lbry.com/nq-gqNGmayI" width="480" alt="thumbnail" title="Managing Files and Directories in Practice - Learning Emacs Lisp #6" /></p>In this video, we'll learn how to manage files and directories using Emacs Lisp. We'll also walk through a lot of real code examples showing how to use these functions in practice! By the end of the episode, we will complete the core functionality of the dotfiles management package we've been working on in this series called dotcrafter.el.<br /><br />Check out the show notes here: https://systemcrafters.cc/learning-emacs-lisp/managing-files-and-directories/<br /><br />dotcrafter.el on GitHub: https://github.com/daviwil/dotcrafter.el<br /><br />We cover the following topics:<br /><br />- 0:00 Intro<br />- 0:39 What will we cover?<br />- 1:23 Explaining symbolic links<br />- 2:27 Our project: dotcrafter.el<br />- 5:04 Getting the current directory<br />- 7:17 Manipulating file paths<br />- 11:37 Resolving file paths<br />- 17:45 Example: Resolving the destination path of a configuration file<br />- 25:17 Checking if files and directories exist<br />- 26:19 Creating directories<br />- 29:00 Example: Creating expected directories before linking<br />- 34:47 Listing files in directories<br />- 42:51 Example: Finding the list of all configuration files to be linked<br />- 44:24 Copying files and directories<br />- 49:57 Example: Migrating configuration files to the dotfiles folder<br />- 57:41 Renaming and moving, and deleting files and directories<br />- 58:31 Finishing and demoing the example!<br />- 1:00:43 Creating symbolic links<br />- 1:03:15 Example: Creating symbolic links for all configuration files<br />- 1:17:08 The final code in action!<br />- 1:19:48 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 />Intro music: Coriolis Effect by logos feat. stefsax, licensed CC-BY<br />http://ccmixter.org/files/mseq/26296<br />...<br />https://www.youtube.com/watch?v=nq-gqNGmayI