Skip to content

Exclude certain files from file prompts

The user option denote-excluded-files-regexp is a regular expression that matches files names which should be excluded from all Denote file prompts. Such prompts are present when linking to a file with one of the many commands, like denote-link (Linking notes), or when trying to open a file that may or may not exist (Open an existing note or create it if missing).

Functions that check for files include denote-directory-files and denote-file-prompt.

The match is performed with string-match-p.

For developers or advanced users.