From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Paste from clip/kill ring as cold block? Date: Fri, 3 Jul 2015 12:40:55 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2750a431a0c0519f55ae0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAxSt-0002pT-0I for emacs-orgmode@gnu.org; Fri, 03 Jul 2015 05:41:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAxSs-00009K-52 for emacs-orgmode@gnu.org; Fri, 03 Jul 2015 05:40:58 -0400 Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:35147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAxSr-00008I-Qt for emacs-orgmode@gnu.org; Fri, 03 Jul 2015 05:40:58 -0400 Received: by lagh6 with SMTP id h6so78642621lag.2 for ; Fri, 03 Jul 2015 02:40:55 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org mode --001a11c2750a431a0c0519f55ae0 Content-Type: text/plain; charset=UTF-8 Hi list i use code block alot in my various org mode users. while the C-c C-v d is fast to use i find that alot of my use cases are focused on pasting stuff and then converting that into code blocks. i was wondering if anyone knew or uses his own mini script of a way to paste from the clipboard/killring as a code block? ie if i have XYZ in the clip it would paste as #+BEGIN_SRC emacs-lisp XYZ #+END_SRC maybe one could use hydra to choose which language to paste as code just an idea, would love to hear if anyone is using something similar best Z --001a11c2750a431a0c0519f55ae0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi list

i use code block alot in my various org mode users. = while the C-c C-v d is fast to use i find that alot of my use cases are focused on pasting stuff= and then converting that into code blocks. i was wondering if anyone knew = or uses his own mini script of a way to paste from the clipboard/killring as a code block?
=
ie if i have XYZ in the clip it would= paste as=C2=A0

#+BEGIN_SRC emacs-lisp=C2=A0
XYZ
#+END_SRC

maybe one could u= se hydra to choose which language to paste as code

just an idea, would love to hear if anyone is using something similar

best

Z
--001a11c2750a431a0c0519f55ae0--