#+TITLE: Capture #+AUTHOR: Christopher James Hayward #+EMAIL: chris@chrishayward.xyz #+PROPERTY: header-args:emacs-lisp :tangle capture.el :comments org #+PROPERTY: header-args :results silent :eval no-export #+OPTIONS: num:nil toc:nil todo:nil tasks:nil tags:nil #+OPTIONS: skip:nil author:nil email:nil creator:nil timestamp:nil Capturing images, screencasts, screenshots or live-streaming. It's defined in this file. * Screenshots Download *screenshot.el*[fn:1] for taking screenshots of highlighted regions or entire buffers. #+begin_src emacs-lisp (straight-use-package '(screenshot :type git :host github :repo "tecosaur/screenshot")) #+end_src * Screencasts Create screencasts with =one-frame-per-action= GIF recording via *Emacs gif screencast*[fn:2]. + Pause / Resume + High Quality + Optimized #+begin_src emacs-lisp (use-package gif-screencast :commands (gif-screencast-start-or-stop gif-screencast-toggle-pause) :custom (gif-screencast-output-directory (concat dotfiles/home "docs/images/"))) #+end_src * Keybindings + Place keybindings for capturing the screen behind =SPC s=. * Screenshot with =s= * Screencast with =c= #+begin_src emacs-lisp (dotfiles/leader "s" '(:ignore t :which-key "Screen") "ss" '(screenshot :which-key "Screenshot") "sc" '(gif-screencast-start-or-stop :which-key "Screencast")) #+end_src * Footnotes [fn:1] https://github.com/tecosaur/screenshot [fn:2] https://github.com/takaxp/emacs-gif-screencast