Variable: org-yank-image-file-name-function

org-yank-image-file-name-function is a customizable variable defined in org.el.gz.

Value

org-yank-image-autogen-filename

Documentation

Function to generate filename for image yanked from clipboard.

By default, this autogenerates a filename based on the current time. It is called with no arguments and should return a string without any extension which is used as the filename.

This variable was added, or its default value changed, in Org version
9.7.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defcustom org-yank-image-file-name-function #'org-yank-image-autogen-filename
  "Function to generate filename for image yanked from clipboard.
By default, this autogenerates a filename based on the current
time.
It is called with no arguments and should return a string without
any extension which is used as the filename."
  :group 'org
  :package-version '(Org . "9.7")
  :type '(radio (function-item :doc "Autogenerate filename"
                               org-yank-image-autogen-filename)
                (function-item :doc "Ask for filename"
                               org-yank-image-read-filename)
                function))