{"repo":"sshaw/copy-as-format","free":true,"listed":false,"github":"https://github.com/sshaw/copy-as-format","clone":"git clone https://github.com/sshaw/copy-as-format.git","description":"Emacs function to copy buffer locations as GitHub/Slack/JIRA etc... formatted code","language":"Emacs Lisp","stars":146,"topics":["emacs","slack","hipchat","disqus","jira","gitlab","markdown","bitbucket","html","pod"],"license":null,"category":"chat-messaging","readme_excerpt":"copy-as-format Emacs function to copy buffer locations as GitHub/Slack/JIRA etc... formatted code Supported Formats/Services AsciiDoc Bitbucket Disqus GitHub GitLab ⚰ HipChat HTML JIRA Markdown MediaWiki Org-mode POD reStructuredText Slack Telegram WhatsApp Usage M-x copy-as-format or C-u M-x copy-as-format Copy the current line or active region and add it to the kill ring as GitHub/Slack/JIRA... formatted code. Format defaults to copy-as-format-default . The buffer will not be modified. With a prefix argument prompt for the format. M-x copy-as-format-SERVICE Where SERVICE is one of the supported services. It's a good idea to bind these functions to a key sequence: For AsciiDoc customization see copy-as-format-asciidoc-include-file-name and copy-as-format-asciidoc-language-alist . Adding Formats Create a format function with a signature of TEXT MULTILINE : TEXT - the text to be formatted MULTILINE - t if TEXT spans multiple lines, otherwise nil For example: Then, add an entry to copy-as-format-format-alist . The key is the format's name and the value is the format function: See Also git-link output-as-format - A command-line version of copy-as-format","default_branch":null,"files":null,"tree":[],"storefront":"/r/sshaw","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sshaw/copy-as-format/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}