Skip to content

Instantly share code, notes, and snippets.

@TakesxiSximada
Created September 12, 2018 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TakesxiSximada/865c20f6ca8b995138cc13aeae425f91 to your computer and use it in GitHub Desktop.
Save TakesxiSximada/865c20f6ca8b995138cc13aeae425f91 to your computer and use it in GitHub Desktop.
現在開いているファイルのパスをコピーする
(defun our-buffer-copy-current-file-path ()
(interactive)
(let ((path (buffer-file-name)))
(if path
(progn
(kill-new path)
(message (format "Copied: %s" path)))
(message (format "Cannot copied")))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment