This is a simple script that allows you to choose an area that will be recorded into a 10s animated gif.
screencapture [dest-file]
(require 's) | |
(require 'request) | |
(require 'seq) | |
(require 'jabber) | |
(defvar hipchat--user-info-for-completion nil) | |
(defcustom hipchat-nickname "Full name" "Hipchat real name (see see https://hipchat.com/account/xmpp)." | |
:type '(string) |
(advice-remove 'kill-emacs 'spacemacs-really-exit) | |
(defun ad-advice-kill-emacs (orig-fun) | |
"Prompt before killing." | |
(if (and (not spacemacs-really-kill-emacs) | |
(spacemacs/persistent-server-running-p)) | |
(when (y-or-n-p "Really kill frame?") | |
(spacemacs/frame-killer)) | |
(when (y-or-n-p "Really exit?") | |
(funcall orig-fun)))) | |
(advice-add 'kill-emacs :around 'ad-advice-kill-emacs) |