一、参考

emacs系列文章目录——更新ing

神器:EMACS GIF屏幕录制

emacs-gif-screencast

二、依赖装置(MacOS)

2.1 装置imagemagick

brew install imagemagick

或者

tar包装置

呈现问题:

(1)依赖版本问题

我的解决形式是重新安装brew,详见重新安装brew

注:我抉择的是科大源

2.2 装置 ffmpeg

brew install ffmpeg

2.3 装置 gifsicle

brew install gifsicle

三、配置应用

3.1 配置 init.el

(with-eval-after-load 'gif-screencast  (setq gif-screencast-args '("-x")) ;; To shut up the shutter sound of `screencapture' (see `gif-screencast-command').  (setq gif-screencast-cropping-program "mogrify") ;; Optional: Used to crop the capture to the Emacs frame.  (setq gif-screencast-capture-format "ppm")) ;; Optional: Required to crop captured images.

3.2 罕用的命令

命令阐明
M-x gif-screencast开始录制
M-x gif-screencast-toggle-pause暂停录制
M-x gif-screencast-stop进行录制

留神:默认的保留门路是 ~/Videos/emacs