Variable: denote-kill-buffers

denote-kill-buffers is a customizable variable defined in denote.el.

Value

nil

Documentation

Control whether creation or renaming commands kill their buffer.

The default behaviour of creation or renaming commands such as denote or denote-rename-file is to not kill the buffer they create or modify at the end of their operation.

If this user option is nil (the default), buffers affected by a creation or renaming command are not automatically killed.

If set to on-creation, new notes are automatically killed.

If set to on-rename, renamed notes are automatically killed.

If set to t, new and renamed notes are killed.

If a buffer is killed, it is also saved, as if denote-save-buffers were t. See its documentation.

In all cases, if the buffer already existed before the Denote operation it is NOT automatically killed.

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

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defcustom denote-kill-buffers nil
  "Control whether creation or renaming commands kill their buffer.

The default behaviour of creation or renaming commands such as
`denote' or `denote-rename-file' is to not kill the buffer they
create or modify at the end of their operation.

If this user option is nil (the default), buffers affected by a
creation or renaming command are not automatically killed.

If set to `on-creation', new notes are automatically killed.

If set to `on-rename', renamed notes are automatically killed.

If set to t, new and renamed notes are killed.

If a buffer is killed, it is also saved, as if `denote-save-buffers'
were t. See its documentation.

In all cases, if the buffer already existed before the Denote operation
it is NOT automatically killed."
  :group 'denote
  :package-version '(denote . "3.1.0")
  :type '(choice
          (const :tag "Do not kill buffers" nil)
          (const :tag "Kill after creation" on-creation)
          (const :tag "Kill after rename" on-rename)
          (const :tag "Kill after creation and rename" t)))