Function: embark-save-relative-path

embark-save-relative-path is an interactive and byte-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

Source Code

;; Defined in ~/.emacs.d/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))))