Fork me on GitHub
#emacs
<
2016-11-03
>
borkdude16:11:20

How do I copy the buffer’s filename to the clipboard? (I’m using Prelude)

jethroksy16:11:04

@borkdude no in-built function afaik

jethroksy16:11:14

(defun jethro/add-curr-file-to-yank ()
  (interactive)
  (kill-new (buffer-file-name)))

jethroksy16:11:39

this will fail if buffers don't have a corresponding file

borkdude16:11:57

but that function doesn’t seem to be in Prelude anymore?

jethroksy16:11:34

can't help you there

jethroksy16:11:42

it's not in crux either

jethroksy16:11:03

i set this to a custom ivy-action, you should check if helm has something like that as well

tianshu17:11:23

anyone use squiggly-clojure?