Move copy path (to wrong file)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
;;; qwan/qwan-blog.el -*- lexical-binding: t; -*-
|
||||
;;;
|
||||
|
||||
(provide 'qwan-blog)
|
||||
|
||||
|
||||
(defun qwan/copy-filename ()
|
||||
"Push the file name of the currently visited buffer to the kill ring."
|
||||
(interactive)
|
||||
(unless buffer-file-name
|
||||
(error "The current buffer doesn't visit a file"))
|
||||
|
||||
(kill-new buffer-file-name)
|
||||
(message "Copied %s" buffer-file-name))
|
||||
|
||||
Reference in New Issue
Block a user