summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.org18
1 files changed, 18 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index a572362..b0a03c8 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -2182,6 +2182,24 @@ I like to use the clipboard more than the primary selection in X11.
   (setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING)))
 #+END_SRC
 
+*** Copy formatted code
+
+#+BEGIN_SRC emacs-lisp
+(bind-key* "C-c w" (define-prefix-command 'copy-as-map))
+(use-package copy-as-format
+  :bind (("C-c C-w" . copy-as-format)
+         :map copy-as-map
+         ("b" . copy-as-format-bitbucket)
+         ("g" . copy-as-format-github)
+         ("h" . copy-as-format-hipchat)
+         ("w" . copy-as-format-html)
+         ("j" . copy-as-format-jira)
+         ("m" . copy-as-format-markdown)
+         ("s" . copy-as-format-slack)))
+#+END_SRC
+
+**
+
 ** Selection
 
 I’m quite used to deleting text by selecting it and typing.  Emacs has