emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [New Contrib Feature] Automatic URL shortening via Bitly
@ 2012-05-25  2:14 Neil Smithline
  2012-05-25 21:36 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Neil Smithline @ 2012-05-25  2:14 UTC (permalink / raw)
  To: Org Mode

Just thought I'd let you know about two projects I've been working on 
that, when combined, make Org even cooler than it already is.

A few months ago I took over maintenance of Emacs' bitly.el. I really 
worked it over, fixed some bugs, and, most importantly, I made it 
default to doing an asynchronous call to Bitly. Now you just ask it to 
shorten an URL and, sometime in the near future, it will.

I just recently wrote org-auto-shorten-url. It binds to the `]' key in 
Org Mode. When you type `]', it does some sanity checks to see if you 
just finished typing a link. If you have, it calls `bitly-shorten-url' 
in the background to shorten the URL.

The net net of this is that as you are typing an URL in Org Mode:
    [[http://example.com][Example]]
The http://example.com will magically be transformed into a Bitly URL. I 
now use this for all of my HTML links. Due to technical complications, 
inline image links don't work and probably never will.

You can grab the two packages from Github. They have a dependency on my 
`defhook' package though you can convert that to a straight `add-hook' 
call if you don't want to use defhook (though I think it is real cool).

Neil

- https://github.com/Neil-Smithline/bitly.el
- https://github.com/Neil-Smithline/org-auto-shorten-url
- https://github.com/Neil-Smithline/defhook

-- 
Neil Smithline
http://www.neilsmithline.com
Proud GNU Emacs user since 1986, v. 18.24.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [New Contrib Feature] Automatic URL shortening via Bitly
  2012-05-25  2:14 [New Contrib Feature] Automatic URL shortening via Bitly Neil Smithline
@ 2012-05-25 21:36 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2012-05-25 21:36 UTC (permalink / raw)
  To: Neil Smithline; +Cc: Org Mode

Hi Neil,

Neil Smithline <emacs-orgmode@neilsmithline.com> writes:

> Just thought I'd let you know about two projects I've been working on that,
> when combined, make Org even cooler than it already is.

Thanks for this contribution!  I've added a link to this page:

  http://orgmode.org/worg/org-contrib/

All best,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-25 23:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-25  2:14 [New Contrib Feature] Automatic URL shortening via Bitly Neil Smithline
2012-05-25 21:36 ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).