Function: embark-save-relative-path
embark-save-relative-path is an interactive and natively compiled
function defined in embark.el.
Signature
(embark-save-relative-path FILE)
Documentation
Save the relative path to FILE in the kill ring.
The insert path is relative to default-directory.
Key Bindings
embark-file-map W
Source Code
;; Defined in /nix/store/lls066p88vbzffl5j0d16jbhwpn2zfz2-emacs-packages-deps/share/emacs/site-lisp/elpa/embark-20260610.302/embark.el
(defun embark-save-relative-path (file)
"Save the relative path to FILE in the kill ring.
The insert path is relative to `default-directory'."
(interactive "FFile: ")
(kill-new (file-relative-name (substitute-in-file-name file))))