org-auto-shorten-url

Homepage: https://github.com/Neil-Smithline/org-auto-shorten-url

Author: Neil Smithline

Updated:

Summary

Automatically shorten URLs with Bit.ly (by default) in Org Mode

Commentary

Automatically shorten URLs in `org-mode' using Bit.ly or a link
shortener of your choice.

**** NOTE: This package binds the `]' in `org-mode' overriding
**** any other bindings for `]'.

Putting:
     (require 'org-auto-shorten-url)
in your `user-init-file' will enable this module.

If you do not routinely use `org-mode', putting
     (when-feature-loaded 'org (require 'org-auto-shorten-url))
in your `user-init-file' will give you better performance during
emacs startup.

If needed, you can dowload the `bitly' package at
https://github.com/Neil-Smithline/bitly.el and the `defhook'
package at https://github.com/Neil-Smithline/defhook.

If you don't want to use the `defhook' package you can comment out
the `defhook' declaration near the end of this file and the
"(require 'defhook)" line near the beginning of the file.

Then add these lines to your `user-init-file':

(add-hook 'org-mode-hook
         (lambda () (local-set-key "]" #'org-auto-shorten-url)))

Dependencies