emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Paste from clip/kill ring as cold block?


From: John Kitchin
Subject: Re: [O] Paste from clip/kill ring as cold block?
Date: Fri, 03 Jul 2015 08:37:55 -0400

This sounds like

<s tab type language enter C-y

Or if you know the language use the right shortcut first. E.g. I use <p for python and <el for emacs lisp.

You could use a function for that but there are only 5 key strokes plus the keys for the language above! The function name would probably be longer.



On July 3, 2015, at 5:44 AM, Xebar Saram <address@hidden> wrote:


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]