Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 1.9 KB

README.org

File metadata and controls

59 lines (47 loc) · 1.9 KB

copy-as-format layer

Table of Contents

Description

This layer adds support for copy-as-format.

Features:

  • Function to copy buffer locations as GitHub/Slack/JIRA/HipChat/… formatted code

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add copy-as-format to the existing dotspacemacs-configuration-layers list in this file.

Configuration

You can choose default formatter.

(setq copy-as-format-default "markdown")

Also, you can enable copying of buffer’s file name for asciidoc formatter.

(setq copy-as-format-asciidoc-include-file-name t)

And you can add alist of file name patterns to language names used for asciidoc syntax highlighting.

(setq copy-as-format-asciidoc-language-alist '(("^.*\\.java$" "java")
                                               ("^.*\\.clj[cs]?$" "clojure")))

Key bindings

Key bindingDescription
SPC x f fcopy-as-format
SPC x f acopy-as-format-asciidoc
SPC x f bcopy-as-format-bitbucket
SPC x f dcopy-as-format-disqus
SPC x f gcopy-as-format-github
SPC x f lcopy-as-format-gitlab
SPC x f ccopy-as-format-hipchat
SPC x f hcopy-as-format-html
SPC x f jcopy-as-format-jira
SPC x f mcopy-as-format-markdown
SPC x f wcopy-as-format-mediawiki
SPC x f ocopy-as-format-org-mode
SPC x f pcopy-as-format-pod
SPC x f rcopy-as-format-rst
SPC x f scopy-as-format-slack