diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/emacs/config/functions.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/emacs/config/functions.el b/tools/emacs/config/functions.el index dc7ac89d782d..1bec8ecd98a7 100644 --- a/tools/emacs/config/functions.el +++ b/tools/emacs/config/functions.el @@ -259,4 +259,10 @@ (magit-status "~/depot")) (warn "notmuch failed to render the raw message buffer")))) +(defun scrot-select () + "Take a screenshot based on a mouse-selection and save it to + ~/screenshots." + (interactive) + (shell-command "scrot '$a_%s.png' -s -e 'mv $f ~/screenshots/'")) + (provide 'functions) |