emacs-gif-screencastgithub
imagemagick
brew install imagemagick
或者macos
tar包安裝segmentfault
出現問題:ide
(1)依賴版本問題post
個人解決方式是從新安裝brew
,詳見從新安裝brewui
注:我選擇的是科大源spa
ffmpeg
brew install ffmpeg
gifsicle
brew install gifsicle
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.
命令 | 說明 |
---|---|
M-x gif-screencast |
開始錄製 |
M-x gif-screencast-toggle-pause |
暫停錄製 |
M-x gif-screencast-stop |
中止錄製 |
注意:默認的保存路徑是 ~/Videos/emacs
code