Add screenshot package

This commit is contained in:
TEC 2020-12-25 02:43:54 +08:00
parent 1078cbcd62
commit a72561f44f
Signed by: tec
GPG Key ID: 779591AFDB81F06C
4 changed files with 22 additions and 0 deletions

3
.gitmodules vendored
View File

@ -10,3 +10,6 @@
[submodule "authinfo-color-mode"]
path = lisp/authinfo-color-mode
url = https://github.com/tecosaur/authinfo-color-mode.git
[submodule "screenshot"]
path = lisp/screenshot
url = https://github.com/tecosaur/screenshot.git

View File

@ -1201,7 +1201,22 @@ GoldenDict, it's likely we'll be able to switch from ~sdcv~ to that in the futur
Since GoldenDict supports StarDict files, I expect this will be a relatively
painless switch.
**** Screenshots
This makes it a breeze to take lovely screenshots.
#+begin_src emacs-lisp
(package! screenshot :recipe (:local-repo "lisp/screenshot"))
#+end_src
#+attr_html: :class invertible :alt Example screenshot.el screenshot
[[https://tecosaur.com/lfs/emacs-config/screenshots/screenshot.png]]
Some light configuring is all we need, so we can make use of the [[https://github.com/Calinou/0x0][0x0]] wrapper
file uploading script (which I've renamed to ~upload~).
#+begin_src emacs-lisp :tangle yes
(use-package! screenshot
:defer t
:config (setq screenshot-upload-fn "upload %s 2>/dev/null"))
#+end_src
** Language packages
*** LaTeX
For mathematical convenience, WIP

1
lisp/screenshot Submodule

@ -0,0 +1 @@
Subproject commit 0fcbe4c50ebf62acb14cfe5534d662cf2d486674

BIN
misc/screenshots/screenshot.png (Stored with Git LFS) Normal file

Binary file not shown.