emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [Orgmode] Automatic screenshot insertion


From: David Maus
Subject: Re: [O] [Orgmode] Automatic screenshot insertion
Date: Mon, 06 Jun 2011 20:59:16 +0200
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.3 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

At Tue, 29 Mar 2011 09:43:27 -0500,
Russell Adams wrote:
> I made a minor change. File names are now generated by using the
> current org buffer filename, plus the date and time, and a unique
> number. This allows me to sort out the images better.
>
>                           (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 "]]"))
>                             (org-display-inline-images))
>

Thanks, I update the function on Worg.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... address@hidden
Email..... address@hidden

Attachment: pgpqD3K5bkTMi.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]