Skip to content

kijimaD/create-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MELPA License: GPL v3 check

create-link.el

Smart format link generator package for Emacs. This package adds two smart link generate functions, (create-link) and (create-link-manual)

Install: M-x package-install create-link

e.g. Put cursor on URL and M-x create-link to get format link with title filling with scraped one.

  • http://example.com<a href="http://example.com/">Example Domain</a>

rsz_11118385789-15d5c400-b64d-11eb-9380-2e6b786f41c3

e.g. Open Google on with eww. Then M-x create-link to get a formatted link(↓HTML).

rsz_1118385727-86c8ac00-b64c-11eb-9be7-724f3eaf2fdc

e.g. Put cursor on format link and M-x create-link-manual to convert to any format you choose.

  • <a href="http://example.com/">Example Domain</a>[[http://example.com/][Example Domain]]

🖨Output Format

  • HTML(default)
  • LaTeX
  • Markdown
  • DokuWiki
  • MediaWiki
  • Org-mode

I want to support more formats, please send us your PR! This PR may be helpful!

🔌Context

  • Region active: Use region text for title
  • On format link: Convert link
  • On URL: Use scraping title
  • Specific buffer
    • eww
    • File (Make format link with buffer and file path. Thanks sergiruiztrepat)

🔧Customize

To change the default output format:

(setq create-link-default-format 'markdown) ;; 'media-wiki 'org

💡Image

📋Notes

I wanted to use this↓ useful Chrome extension in Emacs too, so I made it.