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 <zelt...@gmail.com> 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