Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

NOTE: Now included in org-mode!

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lisp
Octocat-spinner-32 README.org
README.org

Overview

This code will allow you to grab the current link or selection from an open mac application and insert it as a hyperlink at point in an org-mode document.

Supported Applications

The following applications are currently supported:

  • Finder.app
  • Mail.app
  • Address Book.app
  • Safari.app
  • Firefox.app
  • Google Chrome.app
  • Together.app

Installation

Add the org-mac-link-grabber/lisp directory to your load-path, and then add

(require 'org-mac-link-grabber) 

to your .emacs. You may also optionally bind a key to activate the link grabber menu, like this:

(add-hook 'org-mode-hook (lambda () 
  (define-key org-mode-map (kbd "C-c g") 'omlg-grab-link)))

Usage

Activate the grabber by typing C-c g (or whatever key you decided to bind, as above), or type M-x omlg-grab-link RET. This will give you a menu in the modeline allowing you to select an application. The current selection in that application will be inserted at point as a hyperlink in your org-mode document.

Customizing

You may customize which applications appear in the grab menu by customizing the group org-mac-link-grabber. Changes take effect immediately.

Something went wrong with that request. Please try again.