emacs插件(6)——录屏 gif-screencast

1、参考

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

神器:EMACS GIF屏幕录制git

emacs-gif-screencastgithub

2、依赖安装(MacOS)

2.1 安装imagemagick

brew install imagemagick

或者macos

tar包安装segmentfault

出现问题:ide

(1)依赖版本问题post

image.png

个人解决方式是从新安装brew,详见从新安装brewui

注:我选择的是科大源spa

image.png

2.2 安装 ffmpeg

brew install ffmpeg

2.3 安装 gifsicle

brew install gifsicle

3、配置使用

3.1 配置 init.el

image.png

(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 code

相关文章
相关标签/搜索