I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.5 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. #+TITLE: Capture
  2. #+AUTHOR: Christopher James Hayward
  3. #+EMAIL: chris@chrishayward.xyz
  4. #+PROPERTY: header-args:emacs-lisp :tangle capture.el :comments org
  5. #+PROPERTY: header-args :results silent :eval no-export
  6. #+OPTIONS: num:nil toc:nil todo:nil tasks:nil tags:nil
  7. #+OPTIONS: skip:nil author:nil email:nil creator:nil timestamp:nil
  8. Capturing images, screencasts, screenshots or live-streaming. It's defined in this file.
  9. * Screenshots
  10. Download *screenshot.el*[fn:1] for taking screenshots of highlighted regions or entire buffers.
  11. #+begin_src emacs-lisp
  12. (straight-use-package
  13. '(screenshot
  14. :type git
  15. :host github
  16. :repo "tecosaur/screenshot"))
  17. #+end_src
  18. * Screencasts
  19. Create screencasts with =one-frame-per-action= GIF recording via *Emacs gif screencast*[fn:2].
  20. + Pause / Resume
  21. + High Quality
  22. + Optimized
  23. #+begin_src emacs-lisp
  24. (use-package gif-screencast
  25. :commands (gif-screencast-start-or-stop gif-screencast-toggle-pause)
  26. :custom (gif-screencast-output-directory (concat dotfiles/home "docs/images/")))
  27. #+end_src
  28. * Keybindings
  29. + Place keybindings for capturing the screen behind =SPC s=.
  30. * Screenshot with =s=
  31. * Screencast with =c=
  32. #+begin_src emacs-lisp
  33. (dotfiles/leader
  34. "s" '(:ignore t :which-key "Screen")
  35. "ss" '(screenshot :which-key "Screenshot")
  36. "sc" '(gif-screencast-start-or-stop :which-key "Screencast"))
  37. #+end_src
  38. * Footnotes
  39. [fn:1] https://github.com/tecosaur/screenshot
  40. [fn:2] https://github.com/takaxp/emacs-gif-screencast