This is clearly visible in the example I showed earlier. It’s hard to show overlays that are immediately cleared on the next command.I’ve noticed that gif-screencast doesn’t handle properly scrolling (e.g.For me at least Emacs became a bit slow during the screencast recording, but this wasn’t a major issue.On Linux XDG_VIDEO_DIR would be used (typically it’s On macOS by default the screencasts get saved to When you’re done with your screencast you have to do M-x Now you can finally do M-x gif-screencast and create your first screencast! Let’s play a bit with CIDER: That’s quite the setup, right? Don’t worry, we’re done with it!
( advice-add #' gif-screencast-cropping-region :around ( lambda ( oldfun &rest r ) ( apply #' format "%dx%d+%d+%d" ( mapcar ( lambda ( x ) ( * 2 ( string-to-number x ))) ( split-string ( apply oldfun r ) "" ))))) Put something like this in your Emacs config: If you’re using Linux you don’t do much besides getting the external tools installed, but macOS users will need a bit of extra
#LICECAP LINUX INSTALL#
I guess it’s clear at this point it’s a good idea to install ImageMagick to have gif-screencast work well. You can check them out by doing M-x customize-group gif-screencast. Just set gif-screencast-want-optimized to nil.Īll of those are configurable via defcustoms. a tool to optimize the final gif ( gifsicle by default).a tool to convert those screenshots into a gif (ImageMagick’s convert by default).an image cropping tool (ImageMagick’s mogrify by default).a screenshot taking tool (by default that’s scrot on Linux and screencapture on macOS).Internally the mode shells out to several command-line tools that do the heavy lifting: Smaller files compared to videos of the same quality. It’s much more efficient than capturing frames even at aįrequency as low as 10 per second. By exploiting thisįact, this package tailors GIF-screencasting for Emacs and captures one frame Most of the time, one user action equals one visual change. Result! Here’s a bit of the project’s rationale straight from its README: As a bonus, it’s possible to easily edit the end Optimizing the size of the resulting gif, as it elimates awkward pauses when This simple approach has the nice benefit of The package basically creates a single frame for each action you
Well, it turns out that there’s a mode for that! 1 It’s namedīe a fairly new addition to the Emacs ecosystem, as its first commit is fromįebruary 2018. Let’s see if we can doīetter and record some awesome screencasts straight from Emacs! I’ve been using tools like Apple Quicktime for conventional I have to admit this caught me by surprise, as even though I know wellĮnough that Emacs can do anything, I still never thought of trying to record
#LICECAP LINUX HOW TO#
Specific - several readers commented on my article Dead Simple EmacsĪctually thought the article would cover how to record screencasts with Emacs Some knowledge, but you also gain a lot of knowledge in return. Yesterday I was reminded of one of my favourite aspects of blogging - you share I’ve committed to writingĪ new blog post here every day until Christmas. This article is part of the “Meta Advent 2019” series.