1
GitHub - PhilippeNoel1/message-links.el: Add reference links in your message
source link: https://github.com/PhilippeNoel1/message-links.el
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
message-links.el
Emacs library to add reference links in message-mode without html.
Table of Contents
What it does
Consider the following textual message with a long link:
Hello,
blablabla ...
... and the report is available in the following link: https://my-file-server.org/Y5yu9Z1+3K83NFyPRy0siDw583mc+4iEljFmkUdgIIJuE5OAZTyhV00rXSMu/LP6z/o8HoD8hnXVIg2bwkddXw==
Blablabla ...
Cheers
This could be transformed into:
Hello,
blablabla ...
... and the report is available in the link [1]
Blablabla ...
Cheers
---links---
[1] : https://my-file-server.org/Y5yu9Z1+3K83NFyPRy0siDw583mc+4iEljFmkUdgIIJuE5OAZTyhV00rXSMu/LP6z/o8HoD8hnXVIg2bwkddXw==
This mode allow the generation of the references in the text as follow:
How to use
- Download this repository into
~/.emacs.d
(load "~/.emacs.d/message-links.el/message-links.el")
(define-key message-mode-map (kbd "C-c l") 'message-links-add)
Then press C-c l
when composing a message to add a link.
customization
message-links-link-header
: Default =\n\n---links---\n
: Header use to separate links and the original text. If set tonil
, disable the header.message-links-index-start
: Default =1
: Start index of links. So by default the first link will be[1]
.message-links-sep-footnotes-link
: Default ='("[" . "] : "
: The text to use for links in the bottom of the buffer. Default, links look like[1] : link text
. Customize with(setq message-links-sep-footnotes-link '("{^" . "}: "))
and links in footnote will look like{^1}: link text
message-links-sep-text-link
: Default ='("[" . "]")
: The text to use for links in the text. Default, links look likeblablabla [1] blablabla
. Customize with(setq message-links-sep-text-link '("{^" . "}"))
and links in text will look likeblablabla {^1} blablabla
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK