关于emacs:emacs插件6录屏-gifscreencast

5次阅读

共计 677 个字符,预计需要花费 2 分钟才能阅读完成。

一、参考

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

正文完
 0