2.8 KiB
Capture
Capturing images, screencasts, screenshots or live-streaming. It's defined in this file.
Slides
Produce high quality presentations that work anywhere with HTML/JS
and the Reveal.js1 package. Achieve this behaviour in Emacs with Ox-reveal2], configured to use a cdn
allows us to produce ones that are not dependent on a local version. An important caveat here is that paths to images must be absolute URLs.
(use-package ox-reveal :after ox :custom (org-reveal-root "https://cdn.jsdelivr.net/npm/reveal.js"))
Create a capture template for creating slides quickly, with our desired configuration.
(with-eval-after-load 'org-roam (add-to-list 'org-roam-capture-templates '("s" "Slides" plain (function org-roam-capture--get-point) "%?" :file-name "docs/slides/${slug}" :unnarrowed t :head " ,#+TITLE: ${title} ,#+AUTHOR: Christopher James Hayward ,#+EMAIL: chris@chrishayward.xyz ,#+REVEAL_ROOT: https://cdn.jsdelivr.net/npm/reveal.js ,#+REVEAL_THEME: serif ,#+EXPORT_FILE_NAME: ${slug} ,#+OPTIONS: reveal_title_slide:nil ,#+OPTIONS: num:nil toc:nil todo:nil tasks:nil tags:nil ,#+OPTIONS: skip:nil author:nil email:nil creator:nil timestamp:nil ")))
Screens
Download screenshot.el3 for taking screenshots of highlighted regions or entire buffers.
(straight-use-package '(screenshot :type git :host github :repo "tecosaur/screenshot"))
Create screencasts with one-frame-per-action
GIF recording via Emacs gif screencast4.
-
Pause / Resume
-
High Quality
-
Optimized
It requires the installation of scrot
, gifsicle
, and convert
from the ImageMagick
library.
(use-package gif-screencast :commands (gif-screencast-start-or-stop gif-screencast-toggle-pause) :custom (gif-screencast-output-directory (concat dotfiles/home "docs/images/")))
-
Place keybindings for capturing the screen behind
SPC s
.-
Screenshot with
s
-
Screencast with
c
-
(dotfiles/leader "s" '(:ignore t :which-key "Screen") "ss" '(screenshot :which-key "Screenshot") "sc" '(gif-screencast-start-or-stop :which-key "Screencast"))