Skip to content

Instantly share code, notes, and snippets.



Created May 19, 2017
What would you like to do?
(defn copy2clip [x]
(let [w (StringWriter.)]
(pprint x w)
(.. Toolkit getDefaultToolkit getSystemClipboard
(setContents (StringSelection. (.toString w)) nil))))

This comment has been minimized.

Copy link
Owner Author

@Hendekagon Hendekagon commented May 19, 2017

add copy2clip to a namespace, then add the above command to Cursive's commands and give it a keyboard shortcut, then you can evaluate an expression in the editor and it will be copied so you can paste the result back into the editor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.