From a72561f44f243454603226d46a066355e2a35aa9 Mon Sep 17 00:00:00 2001 From: TEC Date: Fri, 25 Dec 2020 02:43:54 +0800 Subject: [PATCH] Add screenshot package --- .gitmodules | 3 +++ config.org | 15 +++++++++++++++ lisp/screenshot | 1 + misc/screenshots/screenshot.png | 3 +++ 4 files changed, 22 insertions(+) create mode 160000 lisp/screenshot create mode 100644 misc/screenshots/screenshot.png diff --git a/.gitmodules b/.gitmodules index bb7a1d1..fa3ed71 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/config.org b/config.org index 7e54328..7b0a7ef 100644 --- a/config.org +++ b/config.org @@ -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 diff --git a/lisp/screenshot b/lisp/screenshot new file mode 160000 index 0000000..0fcbe4c --- /dev/null +++ b/lisp/screenshot @@ -0,0 +1 @@ +Subproject commit 0fcbe4c50ebf62acb14cfe5534d662cf2d486674 diff --git a/misc/screenshots/screenshot.png b/misc/screenshots/screenshot.png new file mode 100644 index 0000000..9f69731 --- /dev/null +++ b/misc/screenshots/screenshot.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50f787b5b675b6a381b2ea8822e4f3b5a4297363884f1ebdcfcabf456275dfc1 +size 13089