summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2016-12-14 10:59:31 +0100
committerAlan Pearce2016-12-14 10:59:31 +0100
commite14f629e9171461d24058c0d0f893932e66c665e (patch)
tree08f29f8ad861401f132c4a1f9bcc23e4faa44caf /tag-emacs
parentb03264235e8f01c5662c8181c6ea85ca3be8c4f2 (diff)
downloaddotfiles-e14f629e9171461d24058c0d0f893932e66c665e.tar.lz
dotfiles-e14f629e9171461d24058c0d0f893932e66c665e.tar.zst
dotfiles-e14f629e9171461d24058c0d0f893932e66c665e.zip
Emacs: Configure copy-as-format
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