From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: RFQ - new contribution - org-screenshot.el Date: Mon, 20 May 2013 13:45:48 -0500 Message-ID: <20130520184548.GL26045@cardamom.adamsinfoserv.com> References: <87mwru8f57.wl%max@openchat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeV6A-0004ag-65 for emacs-orgmode@gnu.org; Mon, 20 May 2013 14:46:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeV65-0006vT-CZ for emacs-orgmode@gnu.org; Mon, 20 May 2013 14:46:18 -0400 Received: from tropicana.asmallorange.com ([108.165.20.17]:52801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeV65-0006vJ-8k for emacs-orgmode@gnu.org; Mon, 20 May 2013 14:46:13 -0400 Received: from 173-165-175-252-atlanta.hfc.comcastbusiness.net ([173.165.175.252]:50761 helo=localhost) by tropicana.asmallorange.com with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1UeV63-00027K-3h for emacs-orgmode@gnu.org; Mon, 20 May 2013 14:46:11 -0400 Content-Disposition: inline In-Reply-To: <87mwru8f57.wl%max@openchat.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Thu, May 16, 2013 at 11:21:56PM -0400, Max Mikhanosha wrote: > Hi All, > > I've been writing some documentation in OrgMode with screenshots, and > as with any screenshot taking, it takes a while to get one just right. Max, I use this for all screenshots. This inserts a link named by buffer with a timestamp appended using the Imagemagick import utility, where I can just click a window or drag an area. (defun org-screenshot () "Take a screenshot into a time stamped unique-named file in the same directory as the org-buffer and insert a link to this file." (interactive) (setq filename (concat (make-temp-name (concat (buffer-file-name) "_" (format-time-string "%Y%m%d_%H%M%S_")) ) ".png")) (call-process "import" nil nil nil filename) (insert (concat "[[" filename "]]"))) What advantages would org-screenshot provide by comparison? Thanks. ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3