diff options
author | Kyle Meyer <kyle@kyleam.com> | 2022-12-26 17:50:11 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2023-01-05 22:19:30 -0500 |
commit | c039865e428d5efc9e88390f069bcc90f0a39539 (patch) | |
tree | 5516f6ab350a73ab82db204cc916865671420c2a /lisp | |
parent | 773d729e7f0a63fbd7c5d05a895b10e9515aaa9c (diff) | |
download | emacs.d-c039865e428d5efc9e88390f069bcc90f0a39539.tar.gz |
org: Add command to copy plain file link
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/km-org.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/km-org.el b/lisp/km-org.el index d4cc2f2..37ca829 100644 --- a/lisp/km-org.el +++ b/lisp/km-org.el @@ -537,6 +537,16 @@ beginning of the link." (goto-char beg) slurped)))) +;;;###autoload +(defun km/org-copy-plain-file-link () + (interactive) + (kill-new + (message + (concat "file:" + (abbreviate-file-name + (or (buffer-file-name) + (user-error "Buffer not visiting a file"))))))) + ;;; Export |