Skip to content

The denote-rename-confirmations option

The user option denote-rename-confirmations controls what kind of confirmation renaming commands ask for (Renaming files). Its value is a list of symbols.

The value is either nil, in which case no confirmation is ever requested, or a list of symbols among the following:

  • modify-file-name means that renaming commands will ask for confirmation before modifying the file name.
  • rewrite-front-matter means that renaming commands will ask for confirmation before rewritting the front matter.
  • add-front-matter means that renaming commands will ask for confirmation before adding new front matter to the file.

The default behaviour of the denote-rename-file command (and others like it) is to ask for an affirmative answer as a final step before changing the file name and, where relevant, inserting or updating the corresponding front matter.

Specialized commands that build on top of denote-rename-file (or related) may internally bind this user option to a non-nil value in order to perform their operation (e.g. denote-dired-rename-files goes through each marked Dired file, prompting for the information to use, but carries out the renaming without asking for confirmation (Rename multiple files interactively)).