Variable: denote-infer-keywords

denote-infer-keywords is a customizable variable defined in denote.el.

Value

t

Documentation

Whether to infer keywords from existing notes' file names.

When non-nil (the default), search the file names of existing notes in the variable denote-directory(var)/denote-directory(fun) for their keyword field and extract the entries as "inferred keywords". These are combined with denote-known-keywords and are presented as completion candidates while using denote and related commands interactively.

If nil, refrain from inferring keywords. In this case, make the aforementioned completion prompt show just the denote-known-keywords and enforce them as the only acceptable input. Use this if you want to work with a controlled vocabulary.

The user option denote-keywords-to-not-infer-regexp can be used to exclude keywords that match a regular expression.

Inferred keywords are specific to the value of the variable denote-directory(var)/denote-directory(fun). In a silo, as explained in that variable's doc string, the inferred keywords are specific to the silo.

This variable was added, or its default value changed, in denote version 4.2.0.

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
;;;###autoload (put 'denote-infer-keywords 'safe-local-variable (lambda (val) (or val (null val))))
(defcustom denote-infer-keywords t
  "Whether to infer keywords from existing notes' file names.

When non-nil (the default), search the file names of existing notes in
the variable `denote-directory' for their keyword field and extract the
entries as \"inferred keywords\".  These are combined with
`denote-known-keywords' and are presented as completion candidates while
using `denote' and related commands interactively.

If nil, refrain from inferring keywords.  In this case, make the
aforementioned completion prompt show just the `denote-known-keywords'
and enforce them as the only acceptable input.  Use this if you want to
work with a controlled vocabulary.

The user option `denote-keywords-to-not-infer-regexp' can be used to
exclude keywords that match a regular expression.

Inferred keywords are specific to the value of the variable
`denote-directory'.  In a silo, as explained in that variable's doc
string, the inferred keywords are specific to the silo."
  :group 'denote
  :safe (lambda (val) (or val (null val)))
  :package-version '(denote . "4.2.0")
  :type 'boolean)