[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [Orgmode] Automatic screenshot insertion
From: |
Russell Adams |
Subject: |
Re: [O] [Orgmode] Automatic screenshot insertion |
Date: |
Sun, 15 Jan 2012 06:10:48 -0600 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Sun, Jan 15, 2012 at 12:37:16AM -0600, Marcelo de Moraes Serpa wrote:
> A bit OT, but related.
>
> ---
> It would be *awesome* if we could somehow hook into the emacs
> paste/(drag-and)drop events and automatically "paste" or "drop" the image
> in an org buffer. I don't know if it's possible, but I imagine that if
> hooking into those events was somehow possible, then we could get the
> "event handle" with information regarding the file, and automatically
> insert a link to it, and if iimage is activated, it would then render the
> image. It would be freaking awesome, this is the only thing I miss from
> Evernote.
> ---
>
> - Marcelo.
Emacs has drag'n'drop support. In fact, I've been able to drag and
drop image files from KDE's file manager (dolphin?) into emacs and make
them custom links.
.emacs:
(defun dnd-from-kde (url action)
(insert url)
(select-frame-set-input-focus (selected-frame)))
(custom-set-variables
'(dnd-protocol-alist (quote (("file:///" . dnd-from-kde)))))
This ought to give you a place to start. The URL format may need to
change to make it an Org link, I was using file:// for another text
format.
------------------------------------------------------------------
Russell Adams address@hidden
PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
- Re: [O] [Orgmode] Automatic screenshot insertion, (continued)
- Re: [O] [Orgmode] Automatic screenshot insertion, Eric S Fraga, 2012/01/10
- Re: [O] [Orgmode] Automatic screenshot insertion, François Pinard, 2012/01/10
- Re: [O] [Orgmode] Automatic screenshot insertion, Eric S Fraga, 2012/01/10
- Re: [O] [Orgmode] Automatic screenshot insertion, François Pinard, 2012/01/10
- Re: [O] [Orgmode] Automatic screenshot insertion, Skip Collins, 2012/01/10
- Re: [O] [Orgmode] Automatic screenshot insertion, Jambunathan K, 2012/01/11
- Re: [O] [Orgmode] Automatic screenshot insertion, Skip Collins, 2012/01/12
- Re: [O] [Orgmode] Automatic screenshot insertion, Thomas S. Dye, 2012/01/12
- Re: [O] [Orgmode] Automatic screenshot insertion, François Pinard, 2012/01/14
- Re: [O] [Orgmode] Automatic screenshot insertion, Marcelo de Moraes Serpa, 2012/01/15
- Re: [O] [Orgmode] Automatic screenshot insertion,
Russell Adams <=
- Re: [O] [Orgmode] Automatic screenshot insertion, Marcelo de Moraes Serpa, 2012/01/15
- Re: [O] [Orgmode] Automatic screenshot insertion, Russell Adams, 2012/01/15
- Re: [O] [Orgmode] Automatic screenshot insertion, Eric S Fraga, 2012/01/10