Variable: denote-file-type

denote-file-type is a customizable variable defined in denote.el.

Value

org

Documentation

The file type extension for new notes.

When the value is org (the default), the file type is that of Org mode.

When the value is the symbol markdown-yaml, the file type is that of Markdown mode and the front matter uses YAML notation. Similarly, markdown-toml is Markdown but has TOML syntax in the front matter.

When the value is text, the file type is that of Text mode.

Any other value makes Denote use the first element of the denote-file-types, which is the registry with all the supported file types (Org is the first there out-of-the-box, but users may modify it).

NOTE: Expert users can change the supported file-types by editing the value of denote-file-types. That variable, which is not a user option, controls the behaviour of all file-type-aware functions (creating notes, renaming them, inserting front matter, formatting a link, etc.). Consult its documentation for the technicalities.

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
(defcustom denote-file-type 'org
  "The file type extension for new notes.

When the value is `org' (the default), the file type is that of Org
mode.

When the value is the symbol `markdown-yaml', the file type is that of
Markdown mode and the front matter uses YAML notation.  Similarly,
`markdown-toml' is Markdown but has TOML syntax in the front matter.

When the value is `text', the file type is that of Text mode.

Any other value makes Denote use the first element of the
`denote-file-types', which is the registry with all the supported file
types (Org is the first there out-of-the-box, but users may modify it).

NOTE: Expert users can change the supported file-types by editing the
value of `denote-file-types'.  That variable, which is not a user
option, controls the behaviour of all file-type-aware
functions (creating notes, renaming them, inserting front matter,
formatting a link, etc.).  Consult its documentation for the
technicalities."
  :type '(choice
          (const :tag "Unspecified (defaults to Org)" nil)
          (const :tag "Org mode (default)" org)
          (const :tag "Markdown (YAML front matter)" markdown-yaml)
          (const :tag "Markdown (TOML front matter)" markdown-toml)
          (const :tag "Plain text" text))
  :package-version '(denote . "4.2.0")
  :group 'denote)