1 #+TITLE: org-mac-link.el -- Grab links from open Mac applications
2 #+OPTIONS: ^:{} author:nil
5 # This file is released by its authors and contributors under the GNU
6 # Free Documentation license v1.3 or later, code examples are released
7 # under the GNU General Public License v3 or later.
9 [[file:index.org][{Back to Worg's contibutions index}]]
13 This code will allow you to grab the current link or selection from
14 an open mac application and insert it as a hyperlink at point in an
17 *** Supported Applications
19 The following applications are currently supported:
26 - Firefox.app with the Vimperator plugin
32 Customize the org group by typing =M-x customize-group RET org RET=, then
33 expand the /Modules/ section, and enable =mac-link=.
35 You may also optionally bind a key to activate the link grabber menu, like
38 : (add-hook 'org-mode-hook (lambda ()
39 : (define-key org-mode-map (kbd "C-c g") 'org-mac-grab-link)))
43 Activate the grabber by typing =C-c g= (or whatever key you decided to bind,
44 as above), or type =M-x org-mac-grab-link RET=. This will give you a menu in
45 the modeline allowing you to select an application. The current selection in
46 that application will be inserted at point as a hyperlink in your org-mode
51 You may customize which applications appear in the grab menu by customizing
52 the group /org-mac-link/. Changes take effect immediately. If you are using
53 the org-mode version >=8.2, you can also customize whether the
54 =org-mac-link= should highlight the selected text when grabbing the link from