Function: denote-link-after-creating-with-command

denote-link-after-creating-with-command is an autoloaded, interactive and byte-compiled function defined in denote.el.

Signature

(denote-link-after-creating-with-command COMMAND &optional ID-ONLY)

Documentation

Like denote-link-after-creating but prompt for note-making COMMAND.

Use this to, for example, call denote-signature so that the newly created note has a signature as part of its file name.

Optional ID-ONLY has the same meaning as in the command denote-link-after-creating.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
;;;###autoload
(defun denote-link-after-creating-with-command (command &optional id-only)
  "Like `denote-link-after-creating' but prompt for note-making COMMAND.
Use this to, for example, call `denote-signature' so that the
newly created note has a signature as part of its file name.

Optional ID-ONLY has the same meaning as in the command
`denote-link-after-creating'."
  (interactive
   (list
    (denote-command-prompt)
    current-prefix-arg))
  (unless (or (denote--file-type-org-extra-p)
              (and buffer-file-name (denote-file-has-supported-extension-p buffer-file-name)))
    (user-error "The current file type is not recognized by Denote"))
  (let* ((type (denote-filetype-heuristics (buffer-file-name)))
         (path (denote--command-with-features command nil nil :save :in-background))
         (description (denote-get-link-description path)))
    (denote-link path type description id-only)))