From 022841bbc7516db6d4676a9a00d8601d12f60e4e Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Sat, 6 Mar 2021 11:58:23 -0500 Subject: [PATCH] Add screenshot by tecosaur --- modules/capture.org | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/modules/capture.org b/modules/capture.org index fff828e..c374e27 100644 --- a/modules/capture.org +++ b/modules/capture.org @@ -46,7 +46,17 @@ Create a capture template for creating slides quickly, with our desired configur "))) #+end_src -* Screencasts +* Screens + +Download *screenshot.el*[fn:4] 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 Create screencasts with =one-frame-per-action= GIF recording via *Emacs gif screencast*[fn:3]. @@ -62,15 +72,14 @@ It requires the installation of ~scrot~, ~gifsicle~, and ~convert~ from the =Ima :custom (gif-screencast-output-directory (concat dotfiles/home "docs/images/"))) #+end_src -Place keybindings behind =SPC s=. - -+ Screenshot with =s= -+ Screencast with =c= ++ 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" '(:ignore t :which-key "TODO Screenshot") + "ss" '(screenshot :which-key "Screenshot") "sc" '(gif-screencast-start-or-stop :which-key "Screencast")) #+end_src @@ -79,3 +88,4 @@ Place keybindings behind =SPC s=. [fn:1] https://revealjs.com [fn:2] https://github.com/hexmode/ox-reveal [fn:3] https://github.com/takaxp/emacs-gif-screencast +[fn:4] https://github.com/tecosaur/screenshot