Skip to content

Instantly share code, notes, and snippets.

@dschwilk
Last active October 27, 2020 18:51
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dschwilk/01f65013659ef5705b19 to your computer and use it in GitHub Desktop.
Save dschwilk/01f65013659ef5705b19 to your computer and use it in GitHub Desktop.
Javascript code snippets for mozzilla thunderbird org-mode links. Allows easy insertion of links to thunderbird email messages in org-mode for emacs.
@dschwilk
Copy link
Author

dschwilk commented Jun 1, 2014

Javascript code to create keyboard actions and buttons for org-mode links to thunderbird emails

Allows easy insertion of links to thunderbird email messages in org-mode for emacs.

Some javascript to allow a way to quickly make links to thunderbird email messages and either store that link for org-mode or call org-capture.

Sets up a custom button in Thunderbird which calls org-protocol:// links and then inserting thunderlink::// links in the org-mode document.

Thunderbird setup

  1. Install Custom Buttons add-on for Thunderbird
    http://custombuttons.mozdev.org/

As of Thunderbird 51, this add on does not work. You can create a custom button manually, but it is a pain: https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Toolbars/Custom_toolbar_button

  1. Install thunderlink for thunderbird
    https://addons.mozilla.org/en-us/thunderbird/addon/thunderlink/
  2. Setup org-protocol
    http://orgmode.org/worg/org-contrib/org-protocol.php
  3. Add the code in this package as a custom button:
  4. Use View->Add new button. Copy this file into Code tab
  5. Use View->Toolbar->Customize. Find your new button and drag it onto the toolbar.
  6. Click it!

Additional info:
Thunderbird API Reference:
https://developer.mozilla.org/en/XPCOM_Interface_Reference

org-mode / emacs setup

use emacsclient

@HugoGuiroux
Copy link

There is a fixed version of the custom buttons extension that works on Thunderbird 47.7+ available here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment