Created
September 12, 2018 22:15
-
-
Save TakesxiSximada/865c20f6ca8b995138cc13aeae425f91 to your computer and use it in GitHub Desktop.
現在開いているファイルのパスをコピーする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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