From e14f629e9171461d24058c0d0f893932e66c665e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 14 Dec 2016 10:59:31 +0100 Subject: Emacs: Configure copy-as-format --- tag-emacs/emacs.d/init.org | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 -- cgit 1.4.1