2.5 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 ")))
Screencasts
Create screencasts with one-frame-per-action
GIF recording via Emacs gif screencast3.
-
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 behind SPC s
.
-
Screenshot with
s
-
Screencast with
c
(dotfiles/leader "s" '(:ignore t :which-key "Screen") "ss" '(:ignore t :which-key "TODO Screenshot") "sc" '(gif-screencast-start-or-stop :which-key "Screencast"))