Variable: denote-open-link-function

denote-open-link-function is a customizable variable defined in denote.el.

Value

find-file-other-window

Documentation

Function to find the file of a Denote link.

The default value is find-file-other-window, with find-file because another common option. Users can provide a custom function which behaves like the other two.

This is used in all non-Org buffers that have a link created by Denote. Org has its own mechanism, which you can learn more about by reading the documentation of the org-open-at-point command.

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

Aliases

denote-link-button-action (obsolete since 4.0.0)

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defcustom denote-open-link-function #'find-file-other-window
  "Function to find the file of a Denote link.

The default value is `find-file-other-window', with `find-file' because
another common option.  Users can provide a custom function which
behaves like the other two.

This is used in all non-Org buffers that have a link created by Denote.
Org has its own mechanism, which you can learn more about by reading the
documentation of the `org-open-at-point' command."
  :group 'denote
  :type '(choice (function :tag "Other window" find-file-other-window)
                 (function :tag "Current window" find-file)
                 (function :tag "Custom function"))
  :package-version '(denote . "4.0.0"))