From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: Automatic screenshot insertion Date: Thu, 18 Nov 2010 18:50:46 +0100 Message-ID: <804obezfk9.fsf@mundaneum.com> References: <4CE55F66.80802@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Jonathan, Jonathan BISSON wrote: > Here is a little function that allows a user to insert a screenshot easil= y. > Only works on unix-like systems where ImageMagick is installed (adapt "im= port" > to your screenshot program if needed). > > (defun my-screenshot () > "Take a screenshot into a unique-named file in the current buffer file > directory and insert a link to this file." > > (interactive) > (setq filename > (concat > (make-temp-name > (file-name-directory (buffer-file-name)) > ) > ".jpg" > ) > ) > > (call-process "import" nil nil nil filename) > (insert (concat "[[" filename "]]")) > (org-display-inline-images) > ) I find this to be a very smart idea. Maybe I'll never need it, but well thought! BTW, ImageMagick exists for Windows as well, so it just needs =3Dimport=3D = to be in the path of executables... Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode